on master help sign in
Provide HP info to stable package function
969a85eMichael Snoyman
Stackage/Config.hs+4−2
@@ -139,8 +139,10 @@ defaultExpectedFailures ghcVer = execWriter $ do
139-- | List of packages for our stable Hackage. All dependencies will be
139-- | List of packages for our stable Hackage. All dependencies will be
140-- included as well. Please indicate who will be maintaining the package
140-- included as well. Please indicate who will be maintaining the package
141-- via comments.
141-- via comments.
142−defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
142+defaultStablePackages :: GhcMajorVersion
143+ -> Bool -- ^ using haskell platform?
144+ -> Map PackageName (VersionRange, Maintainer)
143−defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
145+defaultStablePackages ghcVer usingHP = unPackageMap $ execWriter $ do
144 mapM_ (add "michael@snoyman.com") $ words =<<
146 mapM_ (add "michael@snoyman.com") $ words =<<
145 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
147 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
146 , "markdown filesystem-conduit mime-mail-ses"
148 , "markdown filesystem-conduit mime-mail-ses"
Stackage/InstallInfo.hs+3−2
@@ -44,8 +44,9 @@ getInstallInfo settings = do
44 let allPackages' =
44 let allPackages' =
45 case mhp of
45 case mhp of
46 Just hp | requireHaskellPlatform settings ->
46 Just hp | requireHaskellPlatform settings ->
47+ Map.union (stablePackages settings $ requireHaskellPlatform settings)
47− Map.union (stablePackages settings) $ identsToRanges (hplibs hp)
48+ $ identsToRanges (hplibs hp)
48− _ -> stablePackages settings
49+ _ -> stablePackages settings $ requireHaskellPlatform settings
49 allPackages = dropExcluded settings allPackages'
50 allPackages = dropExcluded settings allPackages'
50 let totalCore
51 let totalCore
51 | ignoreUpgradeableCore settings =
52 | ignoreUpgradeableCore settings =
Stackage/Types.hs+2−1
@@ -114,7 +114,8 @@ data SelectSettings = SelectSettings
114 -- ^ Packages which should be dropped from the list of stable packages,
114 -- ^ Packages which should be dropped from the list of stable packages,
115 -- even if present via the Haskell Platform or @stablePackages@. If these
115 -- even if present via the Haskell Platform or @stablePackages@. If these
116 -- packages are dependencies of others, they will still be included.
116 -- packages are dependencies of others, they will still be included.
117+ , stablePackages :: Bool -- ^ require Haskell Platform?
117− , stablePackages :: Map PackageName (VersionRange, Maintainer)
118+ -> Map PackageName (VersionRange, Maintainer)
118 , useGlobalDatabase :: Bool
119 , useGlobalDatabase :: Bool
119 -- ^ Instead of checking the Haskell Platform file for core packages, query
120 -- ^ Instead of checking the Haskell Platform file for core packages, query
120 -- the global database. For this to be reliable, you should only have
121 -- the global database. For this to be reliable, you should only have