mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
PackageConstraints rename
This commit is contained in:
parent
a97335fbc5
commit
e360a857cd
@ -1,30 +1,30 @@
|
||||
{-# LANGUAGE NoImplicitPrelude #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
-- | Get the proposed build plan.
|
||||
module Stackage2.ProposedPlan
|
||||
( ProposedPlan (..)
|
||||
, defaultProposedPlan
|
||||
-- | The constraints on package selection for a new build plan.
|
||||
module Stackage2.PackageConstraints
|
||||
( PackageConstraints (..)
|
||||
, defaultPackageConstraints
|
||||
) where
|
||||
|
||||
import Stackage2.Prelude
|
||||
import qualified Stackage.Config as Old
|
||||
import qualified Stackage.Types as Old
|
||||
|
||||
data ProposedPlan = ProposedPlan
|
||||
{ ppPackages :: Map PackageName (VersionRange, Maintainer)
|
||||
data PackageConstraints = PackageConstraints
|
||||
{ pcPackages :: Map PackageName (VersionRange, Maintainer)
|
||||
-- ^ This does not include core packages or dependencies, just packages
|
||||
-- added by some maintainer.
|
||||
, ppExpectedFailures :: Set PackageName
|
||||
, pcExpectedFailures :: Set PackageName
|
||||
-- ^ At some point in the future, we should split this into Haddock
|
||||
-- failures, test failures, etc.
|
||||
}
|
||||
|
||||
-- | The proposed plan from the requirements provided by contributors.
|
||||
defaultProposedPlan :: ProposedPlan
|
||||
defaultProposedPlan = ProposedPlan
|
||||
{ ppPackages = fmap (Maintainer . pack . Old.unMaintainer)
|
||||
defaultPackageConstraints :: PackageConstraints
|
||||
defaultPackageConstraints = PackageConstraints
|
||||
{ pcPackages = fmap (Maintainer . pack . Old.unMaintainer)
|
||||
<$> Old.defaultStablePackages ghcVer False
|
||||
, ppExpectedFailures = Old.defaultExpectedFailures ghcVer False
|
||||
, pcExpectedFailures = Old.defaultExpectedFailures ghcVer False
|
||||
}
|
||||
where
|
||||
ghcVer = Old.GhcMajorVersion 7 8
|
||||
@ -32,7 +32,7 @@ library
|
||||
Stackage.ServerFiles
|
||||
|
||||
Stackage2.Prelude
|
||||
Stackage2.ProposedPlan
|
||||
Stackage2.PackageConstraints
|
||||
Stackage2.CorePackages
|
||||
Stackage2.PackageIndex
|
||||
build-depends: base >= 4 && < 5
|
||||
|
||||
Loading…
Reference in New Issue
Block a user