stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Types.BuildOpts

Description

Configuration options for building.

Synopsis

Documentation

data BuildOpts Source #

Build options that is interpreted by the build command. This is built up from BuildOptsCLI and BuildOptsMonoid

Constructors

BuildOpts 

Fields

Instances

Instances details
Show BuildOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

data BuildCommand Source #

Command sum type for conditional arguments.

Constructors

Build 
Test 
Haddock 
Bench 
Install 

Instances

Instances details
Show BuildCommand Source # 
Instance details

Defined in Stack.Types.BuildOpts

Eq BuildCommand Source # 
Instance details

Defined in Stack.Types.BuildOpts

boptsCLIAllProgOptions :: BuildOptsCLI -> [Text] Source #

Generate a list of --PROG-option="argument" arguments for all PROGs.

data BuildOptsMonoid Source #

Build options that may be specified in the stack.yaml or from the CLI

Instances

Instances details
Monoid BuildOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Semigroup BuildOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Generic BuildOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Associated Types

type Rep BuildOptsMonoid :: Type -> Type #

Show BuildOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

FromJSON (WithJSONWarnings BuildOptsMonoid) Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep BuildOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep BuildOptsMonoid = D1 ('MetaData "BuildOptsMonoid" "Stack.Types.BuildOpts" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'False) (C1 ('MetaCons "BuildOptsMonoid" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "buildMonoidTrace") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Any) :*: (S1 ('MetaSel ('Just "buildMonoidProfile") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Any) :*: S1 ('MetaSel ('Just "buildMonoidNoStrip") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Any))) :*: ((S1 ('MetaSel ('Just "buildMonoidLibProfile") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidExeProfile") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse)) :*: (S1 ('MetaSel ('Just "buildMonoidLibStrip") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue) :*: S1 ('MetaSel ('Just "buildMonoidExeStrip") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue)))) :*: (((S1 ('MetaSel ('Just "buildMonoidHaddock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidHaddockOpts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HaddockOptsMonoid)) :*: (S1 ('MetaSel ('Just "buildMonoidOpenHaddocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidHaddockDeps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool)))) :*: ((S1 ('MetaSel ('Just "buildMonoidHaddockInternal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidHaddockHyperlinkSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue)) :*: (S1 ('MetaSel ('Just "buildMonoidHaddockForHackage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidInstallExes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse))))) :*: ((((S1 ('MetaSel ('Just "buildMonoidInstallCompilerTool") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidPreFetch") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse)) :*: (S1 ('MetaSel ('Just "buildMonoidKeepGoing") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool)) :*: S1 ('MetaSel ('Just "buildMonoidKeepTmpFiles") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse))) :*: ((S1 ('MetaSel ('Just "buildMonoidForceDirty") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: S1 ('MetaSel ('Just "buildMonoidTests") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse)) :*: (S1 ('MetaSel ('Just "buildMonoidTestOpts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TestOptsMonoid) :*: S1 ('MetaSel ('Just "buildMonoidBenchmarks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse)))) :*: (((S1 ('MetaSel ('Just "buildMonoidBenchmarkOpts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BenchmarkOptsMonoid) :*: S1 ('MetaSel ('Just "buildMonoidReconfigure") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse)) :*: (S1 ('MetaSel ('Just "buildMonoidCabalVerbose") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First CabalVerbosity)) :*: S1 ('MetaSel ('Just "buildMonoidSplitObjs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse))) :*: ((S1 ('MetaSel ('Just "buildMonoidSkipComponents") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "buildMonoidInterleavedOutput") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue)) :*: (S1 ('MetaSel ('Just "buildMonoidProgressBar") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First ProgressBarFormat)) :*: S1 ('MetaSel ('Just "buildMonoidDdumpDir") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Text))))))))

readProgressBarFormat :: String -> Either String ProgressBarFormat Source #

Parse ProgressBarFormat from a String.

data TestOpts Source #

Options for the FinalAction DoTests

Constructors

TestOpts 

Fields

Instances

Instances details
Show TestOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

Eq TestOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

data TestOptsMonoid Source #

Instances

Instances details
Monoid TestOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Semigroup TestOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Generic TestOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Associated Types

type Rep TestOptsMonoid :: Type -> Type #

Show TestOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

FromJSON (WithJSONWarnings TestOptsMonoid) Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep TestOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep TestOptsMonoid = D1 ('MetaData "TestOptsMonoid" "Stack.Types.BuildOpts" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'False) (C1 ('MetaCons "TestOptsMonoid" 'PrefixI 'True) ((S1 ('MetaSel ('Just "toMonoidRerunTests") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue) :*: (S1 ('MetaSel ('Just "toMonoidAdditionalArgs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: S1 ('MetaSel ('Just "toMonoidCoverage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse))) :*: (S1 ('MetaSel ('Just "toMonoidDisableRun") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstFalse) :*: (S1 ('MetaSel ('Just "toMonoidMaximumTimeSeconds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First (Maybe Int))) :*: S1 ('MetaSel ('Just "toMonoidAllowStdin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FirstTrue)))))

newtype HaddockOpts Source #

Haddock Options

Constructors

HaddockOpts 

Fields

Instances

Instances details
Show HaddockOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

Eq HaddockOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

newtype HaddockOptsMonoid Source #

Instances

Instances details
Monoid HaddockOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Semigroup HaddockOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Generic HaddockOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Associated Types

type Rep HaddockOptsMonoid :: Type -> Type #

Show HaddockOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

FromJSON (WithJSONWarnings HaddockOptsMonoid) Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep HaddockOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep HaddockOptsMonoid = D1 ('MetaData "HaddockOptsMonoid" "Stack.Types.BuildOpts" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'True) (C1 ('MetaCons "HaddockOptsMonoid" 'PrefixI 'True) (S1 ('MetaSel ('Just "hoMonoidAdditionalArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String])))

data BenchmarkOpts Source #

Options for the FinalAction DoBenchmarks

Constructors

BenchmarkOpts 

Fields

Instances

Instances details
Show BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

Eq BenchmarkOpts Source # 
Instance details

Defined in Stack.Types.BuildOpts

data BenchmarkOptsMonoid Source #

Instances

Instances details
Monoid BenchmarkOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Semigroup BenchmarkOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Generic BenchmarkOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

Associated Types

type Rep BenchmarkOptsMonoid :: Type -> Type #

Show BenchmarkOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

FromJSON (WithJSONWarnings BenchmarkOptsMonoid) Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep BenchmarkOptsMonoid Source # 
Instance details

Defined in Stack.Types.BuildOpts

type Rep BenchmarkOptsMonoid = D1 ('MetaData "BenchmarkOptsMonoid" "Stack.Types.BuildOpts" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'False) (C1 ('MetaCons "BenchmarkOptsMonoid" 'PrefixI 'True) (S1 ('MetaSel ('Just "beoMonoidAdditionalArgs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First String)) :*: S1 ('MetaSel ('Just "beoMonoidDisableRun") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (First Bool))))

data BuildSubset Source #

Which subset of packages to build

Constructors

BSAll 
BSOnlySnapshot

Only install packages in the snapshot database, skipping packages intended for the local database.

BSOnlyDependencies 
BSOnlyLocals

Refuse to build anything in the snapshot database, see https://github.com/commercialhaskell/stack/issues/5272

Instances

Instances details
Show BuildSubset Source # 
Instance details

Defined in Stack.Types.BuildOpts

Eq BuildSubset Source # 
Instance details

Defined in Stack.Types.BuildOpts

data ApplyCLIFlag Source #

How to apply a CLI flag

Constructors

ACFAllProjectPackages

Apply to all project packages which have such a flag name available.

ACFByName !PackageName

Apply to the specified package only.