stackage-curator-0.13.1: Tools for curating Stackage bundles

Safe HaskellNone
LanguageHaskell2010

Stackage.BuildConstraints

Description

The constraints on package selection for a new build plan.

Synopsis

Documentation

data BuildConstraints Source

Constructors

BuildConstraints 

Fields

bcPackages :: Set PackageName

This does not include core packages.

bcPackageConstraints :: PackageName -> PackageConstraints
 
bcSystemInfo :: SystemInfo
 
bcGithubUsers :: Map Text (Set Text)

map an account to set of pingees

bcBuildToolOverrides :: Map Text (Set Text)

map a build tool name to a set of packages we should include

Used to avoid situations like extra packages on Hackage providing the cabal executable

data TestState :: *

Constructors

ExpectSuccess 
ExpectFailure 
Don'tBuild

when the test suite will pull in things we don't want

defaultBuildConstraints :: Manager -> IO BuildConstraints Source

The proposed plan from the requirements provided by contributors.

Checks the current directory for a build-constraints.yaml file and uses it if present. If not, downloads from Github.

toBC :: ConstraintFile -> IO BuildConstraints Source

setConstraints :: [Dependency] -> BuildConstraints -> BuildConstraints Source

Modify the version bounds with the given Dependencies