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

Stack.Types.Build.ConstructPlan

Description

A module providing types and related helper functions used in module Stack.Build.ConstructPlan.

Synopsis

Documentation

data PackageInfo Source #

Type representing information about packages, namely information about whether or not a package is already installed and, unless the package is not to be built (global packages), where its source code is located.

Constructors

PIOnlyInstalled InstallLocation Installed

This indicates that the package is already installed, and that we shouldn't build it from source. This is only the case for global packages.

PIOnlySource PackageSource

This indicates that the package isn't installed, and we know where to find its source.

PIBoth PackageSource Installed

This indicates that the package is installed and we know where to find its source. We may want to reinstall from source.

Instances

Instances details
Show PackageInfo Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

type CombinedMap = Map PackageName PackageInfo Source #

A type synonym representing dictionaries of package names, and combined information about the package in respect of whether or not it is already installed and, unless the package is not to be built (global packages), where its source code is located.

type M = WriterT W (StateT (Map PackageName (Either ConstructPlanException AddDepRes)) (RIO Ctx)) Source #

Type synonym representing values used during the construction of a build plan. The type is an instance of Monad, hence its name.

data W Source #

Type representing values used as the output to be collected during the construction of a build plan.

Constructors

W 

Fields

Instances

Instances details
Monoid W Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

Methods

mempty :: W #

mappend :: W -> W -> W #

mconcat :: [W] -> W #

Semigroup W Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

Methods

(<>) :: W -> W -> W #

sconcat :: NonEmpty W -> W #

stimes :: Integral b => b -> W -> W #

Generic W Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

Associated Types

type Rep W :: Type -> Type #

Methods

from :: W -> Rep W x #

to :: Rep W x -> W #

type Rep W Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

data AddDepRes Source #

Type representing results of addDep.

Constructors

ADRToInstall Task

A task must be performed to provide the package name.

ADRFound InstallLocation Installed

An existing installation provides the package name.

Instances

Instances details
Show AddDepRes Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

data Ctx Source #

Type representing values used as the environment to be read from during the construction of a build plan (the 'context').

Constructors

Ctx 

Fields

Instances

Instances details
HasPantryConfig Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasLogFunc Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasProcessContext Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasTerm Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasStylesUpdate Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasBuildConfig Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasCompiler Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasConfig Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasEnvConfig Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasSourceMap Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasGHCVariant Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasPlatform Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

HasRunner Ctx Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan

data UnregisterState Source #

State to be maintained during the calculation of local packages to unregister.

data ToolWarning Source #

Warn about tools in the snapshot definition. States the tool name expected and the package name using it.

Instances

Instances details
Show ToolWarning Source # 
Instance details

Defined in Stack.Types.Build.ConstructPlan