Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Config = Config {
- workDir :: !(Path Rel Dir)
- userGlobalConfigFile :: !(Path Abs File)
- build :: !BuildOpts
- docker :: !DockerOpts
- nix :: !NixOpts
- processContextSettings :: !(EnvSettings -> IO ProcessContext)
- localProgramsBase :: !(Path Abs Dir)
- localPrograms :: !(Path Abs Dir)
- hideTHLoading :: !Bool
- prefixTimestamps :: !Bool
- platform :: !Platform
- platformVariant :: !PlatformVariant
- ghcVariant :: !(Maybe GHCVariant)
- ghcBuild :: !(Maybe CompilerBuild)
- latestSnapshot :: !Text
- systemGHC :: !Bool
- installGHC :: !Bool
- skipGHCCheck :: !Bool
- skipMsys :: !Bool
- msysEnvironment :: !(Maybe MsysEnvironment)
- compilerCheck :: !VersionCheck
- compilerRepository :: !CompilerRepository
- localBin :: !(Path Abs Dir)
- fileWatchHook :: !(Maybe (Path Abs File))
- requireStackVersion :: !VersionRange
- jobs :: !Int
- overrideGccPath :: !(Maybe (Path Abs File))
- extraIncludeDirs :: ![FilePath]
- extraLibDirs :: ![FilePath]
- customPreprocessorExts :: ![Text]
- concurrentTests :: !Bool
- templateParams :: !(Map Text Text)
- scmInit :: !(Maybe SCM)
- ghcOptionsByName :: !(Map PackageName [Text])
- ghcOptionsByCat :: !(Map ApplyGhcOptions [Text])
- cabalConfigOpts :: !(Map CabalConfigKey [Text])
- setupInfoLocations :: ![String]
- setupInfoInline :: !SetupInfo
- pvpBounds :: !PvpBounds
- modifyCodePage :: !Bool
- rebuildGhcOptions :: !Bool
- applyGhcOptions :: !ApplyGhcOptions
- applyProgOptions :: !ApplyProgOptions
- allowNewer :: !(First Bool)
- allowNewerDeps :: !(Maybe [PackageName])
- defaultInitSnapshot :: !(First AbstractSnapshot)
- defaultTemplate :: !(Maybe TemplateName)
- allowDifferentUser :: !Bool
- dumpLogs :: !DumpLogs
- project :: !(ProjectConfig (Project, Path Abs File))
- allowLocals :: !Bool
- saveHackageCreds :: !FirstTrue
- hackageBaseUrl :: !Text
- runner :: !Runner
- pantryConfig :: !PantryConfig
- stackRoot :: !(Path Abs Dir)
- snapshot :: !(Maybe AbstractSnapshot)
- userStorage :: !UserStorage
- hideSourcePaths :: !Bool
- recommendStackUpgrade :: !Bool
- notifyIfNixOnPath :: !Bool
- notifyIfGhcUntested :: !Bool
- notifyIfCabalUntested :: !Bool
- notifyIfArchUnknown :: !Bool
- noRunCompile :: !Bool
- stackDeveloperMode :: !Bool
- casa :: !(Maybe (CasaRepoPrefix, Int))
- class (HasPlatform env, HasGHCVariant env, HasProcessContext env, HasPantryConfig env, HasTerm env, HasRunner env) => HasConfig env where
- askLatestSnapshotUrl :: (MonadReader env m, HasConfig env) => m Text
- configProjectRoot :: Config -> Maybe (Path Abs Dir)
- ghcInstallHook :: HasConfig env => RIO env (Path Abs File)
- buildOptsL :: HasConfig s => Lens' s BuildOpts
- envOverrideSettingsL :: HasConfig env => Lens' env (EnvSettings -> IO ProcessContext)
- globalOptsL :: HasRunner env => Lens' env GlobalOpts
- userGlobalConfigFileL :: HasConfig s => Lens' s (Path Abs File)
- stackRootL :: HasConfig s => Lens' s (Path Abs Dir)
- workDirL :: HasConfig env => Lens' env (Path Rel Dir)
- prettyStackDevL :: HasConfig env => [StyleDoc] -> RIO env ()
Documentation
The top-level Stackage configuration.
Config | |
|
Instances
HasPantryConfig Config Source # | |
Defined in Stack.Types.Config | |
HasLogFunc Config Source # | |
HasProcessContext Config Source # | |
Defined in Stack.Types.Config | |
HasTerm Config Source # | |
HasStylesUpdate Config Source # | |
Defined in Stack.Types.Config | |
HasConfig Config Source # | |
HasGHCVariant Config Source # | |
Defined in Stack.Types.Config | |
HasPlatform Config Source # | |
Defined in Stack.Types.Config | |
HasRunner Config Source # | |
class (HasPlatform env, HasGHCVariant env, HasProcessContext env, HasPantryConfig env, HasTerm env, HasRunner env) => HasConfig env where Source #
Class for environment values that can provide a Config
.
Instances
HasConfig EnvConfigPathInfo Source # | |
Defined in Stack.Path | |
HasConfig Ctx Source # | |
HasConfig BuildConfig Source # | |
Defined in Stack.Types.BuildConfig | |
HasConfig Config Source # | |
HasConfig DotConfig Source # | |
HasConfig EnvConfig Source # | |
HasConfig GetPackageFileContext Source # | |
Defined in Stack.Types.PackageFile |
askLatestSnapshotUrl :: (MonadReader env m, HasConfig env) => m Text Source #
Get the URL to request the information on the latest snapshots
configProjectRoot :: Config -> Maybe (Path Abs Dir) Source #
The project root directory, if in a project.
Lens helpers
envOverrideSettingsL :: HasConfig env => Lens' env (EnvSettings -> IO ProcessContext) Source #
globalOptsL :: HasRunner env => Lens' env GlobalOpts Source #