Safe Haskell | None |
---|---|
Language | Haskell2010 |
Execute commands within the properly configured Stack environment.
- defaultEnvSettings :: EnvSettings
- plainEnvSettings :: EnvSettings
- exec :: (MonadIO m, MonadLogger m, MonadThrow m, MonadBaseControl IO m) => EnvOverride -> String -> [String] -> m b
- execSpawn :: (MonadIO m, MonadLogger m, MonadThrow m, MonadBaseControl IO m) => EnvOverride -> String -> [String] -> m b
Documentation
defaultEnvSettings :: EnvSettings Source
Default EnvSettings
which includes locals and GHC_PACKAGE_PATH
plainEnvSettings :: EnvSettings Source
Environment settings which do not embellish the environment
exec :: (MonadIO m, MonadLogger m, MonadThrow m, MonadBaseControl IO 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 :: (MonadIO m, MonadLogger m, MonadThrow m, MonadBaseControl IO m) => EnvOverride -> String -> [String] -> m b Source