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

Stack.Exec

Description

Types and function related to Stack's exec, ghc, run, runghc and runhaskell commands.

Synopsis

Documentation

data ExecOpts Source #

Type representing options for Stack's execution commands.

Constructors

ExecOpts 

Instances

Instances details
Show ExecOpts Source # 
Instance details

Defined in Stack.Exec

Methods

showsPrec :: Int -> ExecOpts -> ShowS

show :: ExecOpts -> String #

showList :: [ExecOpts] -> ShowS

data SpecialExecCmd Source #

Type representing Stack's execution commands.

Constructors

ExecCmd String

stack exec command.

ExecRun

stack run command.

ExecGhc

stack ghc command.

ExecRunGhc

stack runghc or stack runhaskell command.

Instances

Instances details
Show SpecialExecCmd Source # 
Instance details

Defined in Stack.Exec

Eq SpecialExecCmd Source # 
Instance details

Defined in Stack.Exec

data ExecOptsExtra Source #

Type representing extra Stack options for Stack's execution commands.

Constructors

ExecOptsExtra 

Instances

Instances details
Show ExecOptsExtra Source # 
Instance details

Defined in Stack.Exec

Methods

showsPrec :: Int -> ExecOptsExtra -> ShowS

show :: ExecOptsExtra -> String #

showList :: [ExecOptsExtra] -> ShowS

execCmd :: ExecOpts -> RIO Runner () Source #

The function underlying Stack's exec, ghc, run, runghc and runhaskell commands. Execute a command.