on master help sign in
PackageConstraints rename
e360a85Michael Snoyman
Stackage2/ProposedPlan.hs → Stackage2/PackageConstraints.hsrenamed+11−11
@@ -1,30 +1,30 @@
1{-# LANGUAGE NoImplicitPrelude #-}
1{-# LANGUAGE NoImplicitPrelude #-}
2{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE OverloadedStrings #-}
3−-- | Get the proposed build plan.
3+-- | The constraints on package selection for a new build plan.
4−module Stackage2.ProposedPlan
4+module Stackage2.PackageConstraints
5− ( ProposedPlan (..)
5+ ( PackageConstraints (..)
6− , defaultProposedPlan
6+ , defaultPackageConstraints
7 ) where
7 ) where
8
8
9import Stackage2.Prelude
9import Stackage2.Prelude
10import qualified Stackage.Config as Old
10import qualified Stackage.Config as Old
11import qualified Stackage.Types as Old
11import qualified Stackage.Types as Old
12
12
13−data ProposedPlan = ProposedPlan
13+data PackageConstraints = PackageConstraints
14− { ppPackages :: Map PackageName (VersionRange, Maintainer)
14+ { pcPackages :: Map PackageName (VersionRange, Maintainer)
15 -- ^ This does not include core packages or dependencies, just packages
15 -- ^ This does not include core packages or dependencies, just packages
16 -- added by some maintainer.
16 -- added by some maintainer.
17− , ppExpectedFailures :: Set PackageName
17+ , pcExpectedFailures :: Set PackageName
18 -- ^ At some point in the future, we should split this into Haddock
18 -- ^ At some point in the future, we should split this into Haddock
19 -- failures, test failures, etc.
19 -- failures, test failures, etc.
20 }
20 }
21
21
22-- | The proposed plan from the requirements provided by contributors.
22-- | The proposed plan from the requirements provided by contributors.
23−defaultProposedPlan :: ProposedPlan
23+defaultPackageConstraints :: PackageConstraints
24−defaultProposedPlan = ProposedPlan
24+defaultPackageConstraints = PackageConstraints
25− { ppPackages = fmap (Maintainer . pack . Old.unMaintainer)
25+ { pcPackages = fmap (Maintainer . pack . Old.unMaintainer)
26 <$> Old.defaultStablePackages ghcVer False
26 <$> Old.defaultStablePackages ghcVer False
27− , ppExpectedFailures = Old.defaultExpectedFailures ghcVer False
27+ , pcExpectedFailures = Old.defaultExpectedFailures ghcVer False
28 }
28 }
29 where
29 where
30 ghcVer = Old.GhcMajorVersion 7 8
30 ghcVer = Old.GhcMajorVersion 7 8
stackage.cabal+1−1
@@ -32,7 +32,7 @@ library
32 Stackage.ServerFiles
32 Stackage.ServerFiles
33
33
34 Stackage2.Prelude
34 Stackage2.Prelude
35− Stackage2.ProposedPlan
35+ Stackage2.PackageConstraints
36 Stackage2.CorePackages
36 Stackage2.CorePackages
37 Stackage2.PackageIndex
37 Stackage2.PackageIndex
38 build-depends: base >= 4 && < 5
38 build-depends: base >= 4 && < 5