Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data BuildConfig = BuildConfig {
- bcConfig :: !Config
- bcSMWanted :: !SMWanted
- bcExtraPackageDBs :: ![Path Abs Dir]
- bcStackYaml :: !(Path Abs File)
- bcProjectStorage :: !ProjectStorage
- bcCurator :: !(Maybe Curator)
- class HasConfig env => HasBuildConfig env where
- buildConfigL :: Lens' env BuildConfig
- stackYamlL :: HasBuildConfig env => Lens' env (Path Abs File)
- projectRootL :: HasBuildConfig env => Getting r env (Path Abs Dir)
- getProjectWorkDir :: (HasBuildConfig env, MonadReader env m) => m (Path Abs Dir)
- wantedCompilerVersionL :: HasBuildConfig s => Getting r s WantedCompiler
Documentation
data BuildConfig Source #
A superset of Config
adding information on how to build code. The reason
for this breakdown is because we will need some of the information from
Config
in order to determine the values here.
These are the components which know nothing about local configuration.
BuildConfig | |
|
Instances
HasPantryConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasLogFunc BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasProcessContext BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasTerm BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasStylesUpdate BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasBuildConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasGHCVariant BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasPlatform BuildConfig Source # | |
HasRunner BuildConfig Source # | |
Defined in Stack.Types.BuildConfig |
class HasConfig env => HasBuildConfig env where Source #
buildConfigL :: Lens' env BuildConfig Source #
Instances
HasBuildConfig PathInfo Source # | |
Defined in Stack.Path | |
HasBuildConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasBuildConfig EnvConfig Source # | |
Defined in Stack.Types.EnvConfig | |
HasBuildConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile |
stackYamlL :: HasBuildConfig env => Lens' env (Path Abs File) Source #
projectRootL :: HasBuildConfig env => Getting r env (Path Abs Dir) Source #
Directory containing the project's stack.yaml file
getProjectWorkDir :: (HasBuildConfig env, MonadReader env m) => m (Path Abs Dir) Source #
Per-project work dir
wantedCompilerVersionL :: HasBuildConfig s => Getting r s WantedCompiler Source #
The compiler specified by the SnapshotDef
. This may be different from the
actual compiler used!