| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | GHC2024 |
Stack.Script
Description
Types and functions related to Stack's script command.
Synopsis
- data ScriptOpts = ScriptOpts {
- packages :: ![String]
- file :: !FilePath
- args :: ![String]
- compile :: !ScriptExecute
- useRoot :: !Bool
- ghcOptions :: ![String]
- scriptExtraDeps :: ![Unresolved (NonEmpty RawPackageLocationImmutable)]
- shouldRun :: !ShouldRun
- data ScriptExecute
- data ShouldRun
- scriptCmd :: ScriptOpts -> RIO Runner ()
Documentation
data ScriptOpts Source #
Type representing command line options for the stack script command.
Constructors
| ScriptOpts | |
Fields
| |
data ScriptExecute Source #
Type representing choices of interpreting, compiling (without optimisation) and compiling (with optimisation).
Constructors
| SEInterpret | |
| SECompile | Without optimisation. |
| SEOptimize | Compile with optimisation. |
Instances
| Show ScriptExecute Source # | |
Defined in Stack.Script Methods showsPrec :: Int -> ScriptExecute -> ShowS show :: ScriptExecute -> String # showList :: [ScriptExecute] -> ShowS | |
Type representing choices of whether to run or not.