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

Stack.Types.Config

Synopsis

Documentation

data Config Source #

The top-level Stackage configuration.

Constructors

Config 

Fields

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.

Methods

configL :: Lens' env Config Source #

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.

ghcInstallHook :: HasConfig env => RIO env (Path Abs File) Source #

STACK_ROOT/hooks/ghc-install.sh

Lens helpers

workDirL :: HasConfig env => Lens' env (Path Rel Dir) Source #

".stack-work"

Helper logging functions

prettyStackDevL :: HasConfig env => [StyleDoc] -> RIO env () Source #

In dev mode, print as a warning, otherwise as debug