unliftio-0.2.25.0: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)

Safe Haskell | Safe-Inferred
Language | Haskell2010

UnliftIO.Environment

Description

Unlifted System.Environment.

Since: 0.2.5.0

Synopsis

- getArgs :: MonadIO m => m [String]
- getProgName :: MonadIO m => m String
- getExecutablePath :: MonadIO m => m FilePath
- getEnv :: MonadIO m => String -> m String
- lookupEnv :: MonadIO m => String -> m (Maybe String)
- setEnv :: MonadIO m => String -> String -> m ()
- unsetEnv :: MonadIO m => String -> m ()
- withArgs :: MonadUnliftIO m => [String] -> m a -> m a
- withProgName :: MonadUnliftIO m => String -> m a -> m a
- getEnvironment :: MonadIO m => m [(String, String)]

# Documentation

getArgs :: MonadIO m => m [String] #

Lifted `getArgs`.

Since: 0.2.5.0

getProgName :: MonadIO m => m String #

Lifted `getProgName`.

Since: 0.2.5.0

getExecutablePath :: MonadIO m => m FilePath #

Lifted `getExecutablePath`.

Since: 0.2.5.0

getEnv :: MonadIO m => String -> m String #

Lifted `getEnv`.

Since: 0.2.5.0

lookupEnv :: MonadIO m => String -> m (Maybe String) #

Lifted `lookupEnv`.

Since: 0.2.5.0

setEnv :: MonadIO m => String -> String -> m () #

Lifted `setEnv`.

Since: 0.2.5.0

unsetEnv :: MonadIO m => String -> m () #

Lifted `unsetEnv`.

Since: 0.2.5.0

withArgs :: MonadUnliftIO m => [String] -> m a -> m a #

Unlifted `withArgs`.

Since: 0.2.5.0

withProgName :: MonadUnliftIO m => String -> m a -> m a #

Unlifted `withProgName`.

Since: 0.2.5.0

getEnvironment :: MonadIO m => m [(String, String)] #

Lifted `getEnvironment`.

Since: 0.2.5.0