stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.Script

Description

Types and functions related to Stack's script command.

Synopsis

Documentation

data ScriptOpts Source #

Type representing command line options for the stack script command.

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