Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data ScriptOpts = ScriptOpts {
- soPackages :: ![String]
- soFile :: !FilePath
- soArgs :: ![String]
- soCompile :: !ScriptExecute
- soUseRoot :: !Bool
- soGhcOptions :: ![String]
- soScriptExtraDeps :: ![PackageIdentifierRevision]
- soShouldRun :: !ShouldRun
- data ScriptExecute
- data ShouldRun
- scriptCmd :: ScriptOpts -> RIO Runner ()
Documentation
data ScriptOpts Source #
Type representing command line options for the stack script
command.
ScriptOpts | |
|
Instances
Show ScriptOpts Source # | |
Defined in Stack.Script 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).
SEInterpret | |
SECompile | Without optimisation. |
SEOptimize | Compile with optimisation. |
Instances
Show ScriptExecute Source # | |
Defined in Stack.Script showsPrec :: Int -> ScriptExecute -> ShowS # show :: ScriptExecute -> String # showList :: [ScriptExecute] -> ShowS # |
Type representing choices of whether to run or not.