stack-1.0.4.3: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Options

Synopsis

Documentation

data BuildCommand Source

Command sum type for conditional arguments.

Constructors

Build 
Test 
Haddock 
Bench 
Install 

data GlobalOptsContext Source

Allows adjust global options depending on their context Note: This was being used to remove ambibuity between the local and global implementation of stack init --resolver option. Now that stack init has no local --resolver this is not being used anymore but the code is kept for any similar future use cases.

Constructors

OuterGlobalOpts

Global options before subcommand name

OtherCmdGlobalOpts

Global options following any other subcommand

benchOptsParser :: Parser BenchmarkOpts Source

Parser for bench arguments.

buildOptsParser :: BuildCommand -> Parser BuildOpts Source

Parser for build arguments.

cleanOptsParser :: Parser CleanOpts Source

Command-line parser for the clean command.

configOptsParser :: Bool -> Parser ConfigMonoid Source

Command-line arguments parser for configuration.

dockerOptsParser :: Bool -> Parser DockerOptsMonoid Source

Options parser configuration for Docker.

dockerCleanupOptsParser :: Parser CleanupOpts Source

Parser for docker cleanup arguments.

dotOptsParser :: Parser DotOpts Source

Parser for arguments to `stack dot`

globalOptsParser :: GlobalOptsContext -> Maybe LogLevel -> Parser GlobalOptsMonoid Source

Parser for global command-line options.

newOptsParser :: Parser (NewOpts, InitOpts) Source

Parser for stack new.

logLevelOptsParser :: Bool -> Maybe LogLevel -> Parser (Maybe LogLevel) Source

Parser for a logging level.

solverOptsParser :: Parser Bool Source

Parser for solverCmd

testOptsParser :: Parser TestOpts Source

Parser for test arguments.

hpcReportOptsParser :: Parser HpcReportOpts Source

Parser for stack hpc report.

globalOptsFromMonoid :: Bool -> GlobalOptsMonoid -> GlobalOpts Source

Create GlobalOpts from GlobalOptsMonoid.