setenv-0.1.0: A cross-platform library for setting environment variables

Safe HaskellSafe-Inferred

System.SetEnv

Synopsis

Documentation

setEnv :: String -> String -> IO ()Source

setEnv name value sets the specified environment variable to value.

If value is the empty string, the specified environment variable is removed from the environment.

Throws IOException if name is the empty string or contains an equals character.

unsetEnv :: String -> IO ()Source

unSet name removes the specified environment variable from the environment of the current process.

Throws IOException if name is the empty string or contains an equals character.