Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Stack.Types.BuildConfig
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.
Constructors
BuildConfig | |
Fields
|
Instances
HasPantryConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasLogFunc BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasProcessContext BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasTerm BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasStylesUpdate BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasBuildConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasGHCVariant BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasPlatform BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasRunner BuildConfig Source # | |
Defined in Stack.Types.BuildConfig |
class HasConfig env => HasBuildConfig env where Source #
Methods
buildConfigL :: Lens' env BuildConfig Source #
Instances
HasBuildConfig PathInfo Source # | |
Defined in Stack.Path Methods | |
HasBuildConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig Methods | |
HasBuildConfig EnvConfig Source # | |
Defined in Stack.Types.EnvConfig Methods | |
HasBuildConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile Methods buildConfigL :: Lens' GetPackageFileContext BuildConfig Source # |
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!