shrun
Safe HaskellNone
LanguageGHC2021

Shrun.Configuration.Env

Description

Provides functions for creating Env from CLI/Toml configuration.

Synopsis

Running with Env

withEnv :: (HasCallStack, MonadAtomic m, MonadFileReader m, MonadFileWriter m, MonadHandleWriter m, MonadIORef m, MonadMask m, MonadNotify m, MonadOptparse m, MonadPathReader m, MonadPathWriter m, MonadPosixFiles m, MonadTerminal m, NotifyEnvF m ~ notifyEnv) => (Env notifyEnv r -> m a) -> m a Source #

Creates an Env from CLI args and TOML config to run with a monadic action.

Misc