packages feed

stackage-curator 0.7.0.4 → 0.7.0.5

raw patch · 2 files changed

+17/−6 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Stackage/CompleteBuild.hs view
@@ -94,11 +94,22 @@   where     slug' = "nightly-" ++ day -parseGoal :: MonadThrow m => Text -> m (LTSVer -> Bool)-parseGoal "" = return $ const True-parseGoal t =+parseGoal :: MonadThrow m+          => BumpType+          -> Text+          -> m (LTSVer -> Bool)+parseGoal _ "" = return $ const True+parseGoal bumpType t =     case decimal t of-        Right (major, "") -> return $ \(LTSVer major' _) -> major' <= major+        Right (major, "") -> return $ \(LTSVer major' _) ->+            case bumpType of+                -- For major bumps: specifying 2 means we want to ignore+                -- anything in the 2.* range+                Major -> major' < major++                -- But for minor bumps, specifying 2 means we want to include+                -- everything in 2.*, and start ignore 3.*+                Minor -> major' <= major         _ ->             case parseLTSRaw t of                 Nothing -> throwM $ ParseGoalFailure t@@ -116,7 +127,7 @@     plan' <- newBuildPlan pkgs bc     return $ nightlySettings day plan' getSettings man (LTS bumpType goal) = do-    matchesGoal <- parseGoal goal+    matchesGoal <- parseGoal bumpType goal     Option mlts <- fmap (fmap getMax) $ runResourceT         $ sourceDirectory "."        $= concatMapC (parseLTSVer . filename)
stackage-curator.cabal view
@@ -1,5 +1,5 @@ name:                stackage-curator-version:             0.7.0.4+version:             0.7.0.5 synopsis:            Tools for curating Stackage bundles description:         Please see <http://www.stackage.org/package/stackage-curator> for a description and documentation. homepage:            https://github.com/fpco/stackage