| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | GHC2024 |
Stack.Types.Plan
Description
Plan-related types and functions.
Synopsis
- data Plan = Plan {
- tasks :: !(Map PackageName Task)
- finals :: !(Map PackageName Task)
- unregisterLocal :: !(Map GhcPkgId (PackageIdentifier, Text))
- installExes :: !(Map StackUnqualCompName InstallLocation)
- data Task = Task {
- taskType :: !TaskType
- configOpts :: !TaskConfigOpts
- buildHaddocks :: !Bool
- present :: !(Map PackageIdentifier GhcPkgId)
- allInOne :: !Bool
- cachePkgSrc :: !CachePkgSrc
- buildTypeConfig :: !Bool
- data TaskType
- data TaskConfigOpts = TaskConfigOpts {}
- taskAnyMissing :: Task -> Bool
- taskIsTarget :: Task -> Bool
- taskLocation :: Task -> InstallLocation
- taskProvides :: Task -> PackageIdentifier
- taskTargetIsMutable :: Task -> IsMutable
- taskTypeLocation :: TaskType -> InstallLocation
- taskTypePackageIdentifier :: TaskType -> PackageIdentifier
- installLocationIsMutable :: InstallLocation -> IsMutable
Documentation
A complete plan of what needs to be built and how to do it
Constructors
| Plan | |
Fields
| |
A type representing tasks to perform when building.
Constructors
| Task | |
Fields
| |
Type representing different types of task, depending on what is to be built.
Constructors
| TTLocalMutable LocalPackage | Building local source code. |
| TTRemotePackage IsMutable Package PackageLocationImmutable | Building something from the package index (upstream). |
data TaskConfigOpts Source #
Given the IDs of any missing packages, produce the configure options
Constructors
| TaskConfigOpts | |
Fields
| |
Instances
| Show TaskConfigOpts Source # | |
Defined in Stack.Types.Plan Methods showsPrec :: Int -> TaskConfigOpts -> ShowS show :: TaskConfigOpts -> String # showList :: [TaskConfigOpts] -> ShowS | |
taskAnyMissing :: Task -> Bool Source #
Were any of the dependencies missing?
taskIsTarget :: Task -> Bool Source #
taskLocation :: Task -> InstallLocation Source #
A function to yield the relevant database (write-only or mutable) of the given task.
taskProvides :: Task -> PackageIdentifier Source #
A function to yield the package name and version to be built by the given task.
taskTargetIsMutable :: Task -> IsMutable Source #
taskTypeLocation :: TaskType -> InstallLocation Source #
A function to yield the relevant database (write-only or mutable) of a
given TaskType value.
taskTypePackageIdentifier :: TaskType -> PackageIdentifier Source #
A function to yield the package name and version of a given TaskType
value.