Hoogle Search
Within LTS Haskell 24.16 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getenv :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe [Char])gi-glib GI.GLib.Functions Returns the value of an environment variable. On UNIX, the name and value are byte strings which might or might not be in some consistent character set and encoding. On Windows, they are in UTF-8. On Windows, in case the environment variable's value contains references to other environment variables, they are expanded.
-
ghc-internal GHC.Internal.System.Environment Computation getEnv var returns the value of the environment variable var. For the inverse, the setEnv function can be used. This computation may fail with:
- isDoesNotExistError if the environment variable does not exist.
getEnv :: String -> IO (Maybe String)ghc-internal GHC.Internal.System.Environment.Blank Similar to lookupEnv.
getEnv :: String -> Action (Maybe String)shake Development.Shake Return Just the value of the environment variable, or Nothing if the variable is not set. The environment variable is tracked as a dependency, and if it changes the rule will rerun in subsequent builds. This function is a tracked version of getEnv / lookupEnv from the base library.
flags <- getEnv "CFLAGS" cmd "gcc -c" [out] (maybe [] words flags)
-
ghc-lib-parser GHC.Data.IOEnv No documentation available.
-
effectful-core Effectful.Dispatch.Static.Primitive Extract a specific data type from the environment.
-
effectful-core Effectful.Internal.Env Extract a specific data type from the environment.
-
shelly Shelly Deprecated: use get_env or get_env_text
getenv :: LuaError e => DocumentedFunction ehslua-module-system HsLua.Module.System Returns the value of an environment variable
-
liquidhaskell-boot Liquid.GHC.API No documentation available.