stack-0.1.8.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Build

Description

Build the project.

Synopsis

Documentation

build Source

Arguments

:: M env m 
=> (Set (Path Abs File) -> IO ())

callback after discovering all local files

-> Maybe FileLock 
-> BuildOpts 
-> m () 

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.

withLoadPackage :: (MonadIO m, HasHttpManager env, MonadReader env m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, HasEnvConfig env) => EnvOverride -> ((PackageName -> Version -> Map FlagName Bool -> IO Package) -> m a) -> m a Source

Provide a function for loading package information from the package index

mkBaseConfigOpts :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => BuildOpts -> m BaseConfigOpts Source

Get the BaseConfigOpts necessary for constructing configure options

queryBuildInfo Source

Arguments

:: M env m 
=> [Text]

selectors

-> m () 

Query information about the build and print the result to stdout in YAML format.