Safe Haskell | None |
---|---|
Language | GHC2021 |
Provides functions for creating Env
from CLI/Toml configuration.
Synopsis
- withEnv :: (HasCallStack, MonadDBus m, MonadFileReader m, MonadFileWriter m, MonadHandleWriter m, MonadOptparse m, MonadPathReader m, MonadPathWriter m, MonadSTM m, MonadThrow m, MonadTerminal m) => (Env r -> m a) -> m a
- makeEnvAndShrun :: forall m r. (HasCallStack, HasConsoleLogging (Env r) (Region (ShellT (Env r) m)), MonadAppleScript m, MonadAsync m, MonadDBus m, MonadFileReader m, MonadFileWriter m, MonadHandleReader m, MonadHandleWriter m, MonadIORef m, MonadNotifySend m, MonadOptparse m, MonadPathReader m, MonadPathWriter m, MonadTypedProcess m, MonadMask m, MonadSTM m, MonadRegionLogger m, MonadTerminal m, MonadThread m, MonadTime m) => m ()
- getMergedConfig :: (HasCallStack, MonadDBus m, MonadFileReader m, MonadOptparse m, MonadPathReader m, MonadThrow m, MonadTerminal m) => m MergedConfig
Running with Env
withEnv :: (HasCallStack, MonadDBus m, MonadFileReader m, MonadFileWriter m, MonadHandleWriter m, MonadOptparse m, MonadPathReader m, MonadPathWriter m, MonadSTM m, MonadThrow m, MonadTerminal m) => (Env r -> m a) -> m a Source #
Creates an Env
from CLI args and TOML config to run with a monadic
action.
makeEnvAndShrun :: forall m r. (HasCallStack, HasConsoleLogging (Env r) (Region (ShellT (Env r) m)), MonadAppleScript m, MonadAsync m, MonadDBus m, MonadFileReader m, MonadFileWriter m, MonadHandleReader m, MonadHandleWriter m, MonadIORef m, MonadNotifySend m, MonadOptparse m, MonadPathReader m, MonadPathWriter m, MonadTypedProcess m, MonadMask m, MonadSTM m, MonadRegionLogger m, MonadTerminal m, MonadThread m, MonadTime m) => m () Source #
Misc
getMergedConfig :: (HasCallStack, MonadDBus m, MonadFileReader m, MonadOptparse m, MonadPathReader m, MonadThrow m, MonadTerminal m) => m MergedConfig Source #
Creates a MergedConfig
from CLI args and TOML config.