stack-1.4.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Exec

Description

Execute commands within the properly configured Stack environment.

Synopsis

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, 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, MonadBaseControl IO m) => EnvOverride -> String -> [String] -> m b Source #

Like exec, but does not use execv on non-windows. This way, there is a sub-process, which is helpful in some cases (#1306)

This function only exits by throwing ExitCode.