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

Safe Haskell | Safe
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] Source #

Lifted `getArgs`.

Since: 0.2.5.0

getProgName :: MonadIO m => m String Source #

Lifted `getProgName`.

Since: 0.2.5.0

getExecutablePath :: MonadIO m => m FilePath Source #

Lifted `getExecutablePath`.

Since: 0.2.5.0

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

Lifted `getEnv`.

Since: 0.2.5.0

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

Lifted `lookupEnv`.

Since: 0.2.5.0

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

Lifted `setEnv`.

Since: 0.2.5.0

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

Lifted `unsetEnv`.

Since: 0.2.5.0

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

Unlifted `withArgs`.

Since: 0.2.5.0

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

Unlifted `withProgName`.

Since: 0.2.5.0

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

Lifted `getEnvironment`.

Since: 0.2.5.0