stack-1.1.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.Config.Build

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

boptsLibProfile :: !Bool
 
boptsExeProfile :: !Bool
 
boptsHaddock :: !Bool

Build haddocks?

boptsOpenHaddocks :: !Bool

Open haddocks in the browser?

boptsHaddockDeps :: !(Maybe Bool)

Build haddocks for dependencies?

boptsInstallExes :: !Bool

Install executables to user path after building?

boptsPreFetch :: !Bool

Fetch all packages immediately ^ Watch files for changes and automatically rebuild

boptsKeepGoing :: !(Maybe Bool)

Keep building/running after failure

boptsForceDirty :: !Bool

Force treating all local packages as having dirty files

boptsTests :: !Bool

Turn on tests for local targets

boptsTestOpts :: !TestOpts

Additional test arguments

boptsBenchmarks :: !Bool

Turn on benchmarks for local targets

boptsBenchmarkOpts :: !BenchmarkOpts

Additional test arguments ^ Commands (with arguments) to run after a successful build ^ Only perform the configure step when building

boptsReconfigure :: !Bool

Perform the configure step even if already configured

boptsCabalVerbose :: !Bool

Ask Cabal to be verbose in its builds

boptsSplitObjs :: !Bool

Whether to enable split-objs.

Instances

data BuildCommand Source

Command sum type for conditional arguments.

Constructors

Build 
Test 
Haddock 
Bench 
Install 

data TestOpts Source

Options for the FinalAction DoTests

Constructors

TestOpts 

Fields

toRerunTests :: !Bool

Whether successful tests will be run gain

toAdditionalArgs :: ![String]

Arguments passed to the test program

toCoverage :: !Bool

Generate a code coverage report

toDisableRun :: !Bool

Disable running of tests

data BenchmarkOpts Source

Options for the FinalAction DoBenchmarks

Constructors

BenchmarkOpts 

Fields

beoAdditionalArgs :: !(Maybe String)

Arguments passed to the benchmark program

beoDisableRun :: !Bool

Disable running of benchmarks

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