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

Stack.Build

Description

Build the project.

Synopsis

Documentation

buildCmd :: BuildOptsCLI -> RIO Runner () Source #

Helper for build and install commands

build Source #

Arguments

:: HasEnvConfig env 
=> Maybe (Set (Path Abs File) -> IO ())

callback after discovering all local files

-> RIO env () 

Build.

If a buildLock is passed there is an important contract here. That lock must protect the snapshot, and it must be safe to unlock it if there are no further modifications to the snapshot to be performed by this build.

loadPackage Source #

Arguments

:: (HasBuildConfig env, HasSourceMap env) 
=> PackageLocationImmutable 
-> Map FlagName Bool 
-> [Text]

GHC options

-> [Text]

Cabal configure options

-> RIO env Package 

Provide a function for loading package information from the package index

mkBaseConfigOpts :: HasEnvConfig env => BuildOptsCLI -> RIO env BaseConfigOpts Source #

Get the BaseConfigOpts necessary for constructing configure options