Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
base 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)base System.Environment.Blank Similar to lookupEnv.
getEnv :: String -> IO (Maybe String)unix System.Posix.Env getEnv looks up a variable in the environment.
getEnv :: ByteString -> IO (Maybe ByteString)unix System.Posix.Env.ByteString getEnv looks up a variable in the environment.
getEnv :: PosixString -> IO (Maybe PosixString)unix System.Posix.Env.PosixString getEnv looks up a variable in the environment.
getEnv :: MonadIO m => String -> m Stringunliftio UnliftIO.Environment Lifted getEnv.
-
base-compat System.Environment.Compat 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.
-
ghc GHC.Data.IOEnv No documentation available.
-
ghc GHC.StgToCmm.ExtCode Get the current environment from the monad.
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.
Page 1 of many | Next