stack-3.3.1: The Haskell Tool Stack
Safe HaskellNone
LanguageGHC2021

Stack.Script

Synopsis

Documentation

data ScriptOpts Source #

Type representing command line options for the stack script command.

Instances

Instances details
Show ScriptOpts Source # 
Instance details

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

Instances details
Show ScriptExecute Source # 
Instance details

Defined in Stack.Script

Methods

showsPrec :: Int -> ScriptExecute -> ShowS #

show :: ScriptExecute -> String #

showList :: [ScriptExecute] -> ShowS #

data ShouldRun Source #

Type representing choices of whether to run or not.

Constructors

YesRun

Run.

NoRun

Do not run.

Instances

Instances details
Show ShouldRun Source # 
Instance details

Defined in Stack.Script

Methods

showsPrec :: Int -> ShouldRun -> ShowS #

show :: ShouldRun -> String #

showList :: [ShouldRun] -> ShowS #

scriptCmd :: ScriptOpts -> RIO Runner () Source #

Run a Stack Script