| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Types.Runner
Synopsis
- data Runner = Runner {
- globalOpts :: !GlobalOpts
- useColor :: !Bool
- logFunc :: !LogFunc
- termWidth :: !Int
- processContext :: !ProcessContext
- dockerEntrypointMVar :: !(MVar Bool)
- class (HasProcessContext env, HasLogFunc env) => HasRunner env where
- class HasRunner env => HasDockerEntrypointMVar env where
- dockerEntrypointMVarL :: Lens' env (MVar Bool)
- globalOptsL :: HasRunner env => Lens' env GlobalOpts
- stackYamlLocL :: HasRunner env => Lens' env StackYamlLoc
- lockFileBehaviorL :: HasRunner env => SimpleGetter env LockFileBehavior
- terminalL :: HasRunner env => Lens' env Bool
- reExecL :: HasRunner env => SimpleGetter env Bool
- rslInLogL :: HasRunner env => SimpleGetter env Bool
- progNameL :: HasRunner env => SimpleGetter env String
- mExecutablePathL :: HasRunner env => SimpleGetter env (Maybe (Path Abs File))
- viewExecutablePath :: HasRunner env => RIO env (Path Abs File)
Documentation
The base environment that almost everything in Stack runs in, based off of
parsing command line options in GlobalOpts. Provides logging, process
execution, and the MVar used to ensure that the Docker entrypoint is
performed exactly once.
Constructors
| Runner | |
Fields
| |
Instances
| HasLogFunc Runner Source # | |
| HasProcessContext Runner Source # | |
Defined in Stack.Types.Runner Methods | |
| HasTerm Runner Source # | |
| HasStylesUpdate Runner Source # | |
Defined in Stack.Types.Runner Methods | |
| HasDockerEntrypointMVar Runner Source # | |
Defined in Stack.Types.Runner | |
| HasRunner Runner Source # | |
class (HasProcessContext env, HasLogFunc env) => HasRunner env where Source #
Class for environment values which have a Runner.
Instances
| HasRunner EnvConfigPathInfo Source # | |
Defined in Stack.Path | |
| HasRunner Ctx Source # | |
| HasRunner BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
| HasRunner Config Source # | |
| HasRunner DotConfig Source # | |
| HasRunner EnvConfig Source # | |
| HasRunner GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile | |
| HasRunner Runner Source # | |
class HasRunner env => HasDockerEntrypointMVar env where Source #
Class for environment values which have a Docker entrypoint MVar.
Instances
| HasDockerEntrypointMVar Runner Source # | |
Defined in Stack.Types.Runner | |
globalOptsL :: HasRunner env => Lens' env GlobalOpts Source #
See the GlobalOpts type.
stackYamlLocL :: HasRunner env => Lens' env StackYamlLoc Source #
See the stackYaml field of the GlobalOpts data constructor.
lockFileBehaviorL :: HasRunner env => SimpleGetter env LockFileBehavior Source #
See the lockFileBehavior field of the GlobalOpts data constructor.
terminalL :: HasRunner env => Lens' env Bool Source #
See the terminal field of the GlobalOpts data constructor.
reExecL :: HasRunner env => SimpleGetter env Bool Source #
See the reExecVersion field of the GlobalOpts data constructor.
rslInLogL :: HasRunner env => SimpleGetter env Bool Source #
See the rslInLog field of the GlobalOpts data constructor.
progNameL :: HasRunner env => SimpleGetter env String Source #
See the progNameL field of the GlobalOpts data constructor.
mExecutablePathL :: HasRunner env => SimpleGetter env (Maybe (Path Abs File)) Source #
See the mExecutablePath field of the GlobalOpts data constructor.
viewExecutablePath :: HasRunner env => RIO env (Path Abs File) Source #
Yield the path to the current Stack executable, if the operating system
provides a reliable way to determine it. Otherwise throw
NoExecutablePath.