| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Stack.Script
Synopsis
- data ScriptOpts = ScriptOpts {
- packages :: ![String]
- file :: !FilePath
- args :: ![String]
- compile :: !ScriptExecute
- useRoot :: !Bool
- ghcOptions :: ![String]
- scriptExtraDeps :: ![PackageIdentifierRevision]
- 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
| |
Instances
| Show ScriptOpts Source # | |
Defined in Stack.Script Methods showsPrec :: Int -> ScriptOpts -> ShowS # show :: ScriptOpts -> String # showList :: [ScriptOpts] -> ShowS # | |
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.