stack-3.9.1: A program for developing Haskell projects
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2024

Stack.Types.Plan

Description

Plan-related types and functions.

Synopsis

Documentation

data Plan Source #

A complete plan of what needs to be built and how to do it

Constructors

Plan 

Fields

Instances

Instances details
Show Plan Source # 
Instance details

Defined in Stack.Types.Plan

Methods

showsPrec :: Int -> Plan -> ShowS

show :: Plan -> String #

showList :: [Plan] -> ShowS

data Task Source #

A type representing tasks to perform when building.

Constructors

Task 

Fields

Instances

Instances details
Show Task Source # 
Instance details

Defined in Stack.Types.Plan

Methods

showsPrec :: Int -> Task -> ShowS

show :: Task -> String #

showList :: [Task] -> ShowS

data TaskType Source #

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).

Instances

Instances details
Show TaskType Source # 
Instance details

Defined in Stack.Types.Plan

Methods

showsPrec :: Int -> TaskType -> ShowS

show :: TaskType -> String #

showList :: [TaskType] -> ShowS

data TaskConfigOpts Source #

Given the IDs of any missing packages, produce the configure options

Instances

Instances details
Show TaskConfigOpts Source # 
Instance details

Defined in Stack.Types.Plan

taskAnyMissing :: Task -> Bool Source #

Were any of the dependencies missing?

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.

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.