HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleunix-2.8.8.0Haskell2010

System.Posix.Env

POSIX environment support

Synopsis
  • Packageunix-2.8.8.0
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceEnv.hsc
valueputEnv
  1. :: String

    "key=value"

  2. -> IO ()

putEnv function takes an argument of the form name=value and is equivalent to setEnv(key,value,True{-overwrite-}).

valuesetEnv
  1. :: String

    variable name

  2. -> String

    variable value

  3. -> Bool

    overwrite

  4. -> IO ()

The setEnv function inserts or resets the environment variable name in the current environment list. If the variable name does not exist in the list, it is inserted with the given value. If the variable does exist, the argument overwrite is tested; if overwrite is False, the variable is not reset, otherwise it is reset to the given value.