Library to access parts of the system environment.
Author: Michael Hanus, Bernd Brassel, Bjoern Peemoeller
Version: November 2020
getArgs
:: IO [String]
Returns the list of the program's command line arguments. |
getEnv
:: String -> IO String
Returns the value of an environment variable. |
setEnv
:: String -> String -> IO ()
Set an environment variable to a value. |
unsetEnv
:: String -> IO ()
Removes an environment variable that has been set by code setEnv/code .
|
getHostname
:: IO String
Returns the hostname of the machine running this process. |
getProgName
:: IO String
Returns the name of the current program, i.e., the name of the main module currently executed. |
isPosix
:: Bool
Is the underlying operating system a POSIX system (unix, MacOS)? |
isWindows
:: Bool
Is the underlying operating system a Windows system? |
Returns the list of the program's command line arguments. The program name is not included.
|
Returns the value of an environment variable. The empty string is returned for undefined environment variables. |
Set an environment variable to a value.
The new value will be passed to subsequent shell commands
(see |
Returns the hostname of the machine running this process.
|
Returns the name of the current program, i.e., the name of the main module currently executed.
|
Is the underlying operating system a POSIX system (unix, MacOS)? |
Is the underlying operating system a Windows system?
|