Safe Haskell | None |
---|---|
Language | Haskell2010 |
Execute commands within the properly configured Stack environment.
- defaultEnvSettings :: EnvSettings
- plainEnvSettings :: EnvSettings
- exec :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m b
- execSpawn :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m b
- execObserve :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m String
Documentation
defaultEnvSettings :: EnvSettings Source #
Default EnvSettings
which includes locals and GHC_PACKAGE_PATH.
Note that this also passes through the GHCRTS environment variable. See https://github.com/commercialhaskell/stack/issues/3444
plainEnvSettings :: EnvSettings Source #
Environment settings which do not embellish the environment
Note that this also passes through the GHCRTS environment variable. See https://github.com/commercialhaskell/stack/issues/3444
exec :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m b Source #
Execute a process within the Stack configured environment.
Execution will not return, because either:
1) On non-windows, execution is taken over by execv of the sub-process. This allows signals to be propagated (#527)
2) On windows, an ExitCode
exception will be thrown.
execSpawn :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m b Source #
execObserve :: (MonadUnliftIO m, MonadLogger m) => EnvOverride -> String -> [String] -> m String Source #