| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stack.Types.Runner
Description
Run environment
- data Runner = Runner {
- runnerReExec :: !Bool
- runnerTerminal :: !Bool
- runnerUseColor :: !Bool
- runnerLogFunc :: !LogFunc
- runnerTermWidth :: !Int
- runnerProcessContext :: !ProcessContext
- runnerParsedCabalFiles :: !(IORef (Map PackageIdentifierRevision GenericPackageDescription, Map (Path Abs Dir) (GenericPackageDescription, Path Abs File)))
- class (HasProcessContext env, HasLogFunc env) => HasRunner env where
- terminalL :: HasRunner env => Lens' env Bool
- useColorL :: HasRunner env => Lens' env Bool
- reExecL :: HasRunner env => Lens' env Bool
- data ColorWhen
- withRunner :: MonadUnliftIO m => LogLevel -> Bool -> Bool -> ColorWhen -> Maybe Int -> Bool -> (Runner -> m a) -> m a
Documentation
Monadic environment.
Constructors
| Runner | |
Fields
| |
class (HasProcessContext env, HasLogFunc env) => HasRunner env where Source #
Minimal complete definition
Constructors
| ColorNever | |
| ColorAlways | |
| ColorAuto |