cabal-bounds 0.8.4 → 0.8.5
raw patch · 3 files changed
+13/−12 lines, 3 filesdep ~lensPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: lens
API changes (from Hackage documentation)
Files
- CHANGELOG +4/−0
- cabal-bounds.cabal +4/−4
- lib/CabalBounds/Update.hs +5/−8
CHANGELOG view
@@ -1,3 +1,7 @@+0.8.5+-----+* Raise upper bounds of dependencies+ 0.8.2-0.8.4 ----------- * Minor changes regarding tests
cabal-bounds.cabal view
@@ -1,5 +1,5 @@ name: cabal-bounds-version: 0.8.4+version: 0.8.5 cabal-version: >=1.9.2 build-type: Simple license: BSD3@@ -29,7 +29,7 @@ . > $ cabal --version > cabal-install version 1.18.0.2- > using version 1.18.1 of the Cabal library + > using version 1.18.1 of the Cabal library . > $ cabal install --constraint="Cabal == 1.18.1" cabal-bounds .@@ -67,7 +67,7 @@ build-depends: base >=3 && <5, cmdargs >=0.10.5 && <0.11,- lens >=4.0.1 && <4.4,+ lens >=4.0.1 && <4.5, strict >=0.3.2 && <0.4, unordered-containers >=0.2.3.3 && <0.3, transformers >=0.3.0.0 && <0.5,@@ -110,7 +110,7 @@ process >=1.1.0.2 && <1.3, filepath >=1.3.0.1 && <1.4, directory >=1.0.0.0 && <1.3,- Glob >=0.7 && <0.8,+ Glob ==0.7.*, cabal-bounds -any type: exitcode-stdio-1.0 main-is: Main.hs
lib/CabalBounds/Update.hs view
@@ -37,7 +37,7 @@ updateDependency (UpdateLower comp ifMissing) libs dep = fromMaybe dep $ if ifMissing && lowerBound_ /= CL.noLowerBound- then return dep+ then Nothing else do version <- HM.lookup pkgName_ libs let newLowerVersion = comp `compOf` version@@ -56,7 +56,7 @@ updateDependency (UpdateUpper comp ifMissing) libs dep = fromMaybe dep $ if ifMissing && upperBound_ /= V.NoUpperBound- then return dep+ then Nothing else do upperVersion <- HM.lookup pkgName_ libs let newUpperVersion = comp `compOf` upperVersion@@ -98,8 +98,8 @@ ensureMinimalVersionBranch comp branch = let numDigits = numNeededVersionDigits comp numMissing = numDigits - length branch- branch' | numMissing >= 0 = branch ++ replicate numMissing 0- | otherwise = branch+ branch' | numMissing > 0 = branch ++ replicate numMissing 0+ | otherwise = branch in branch' where numNeededVersionDigits Major1 = 1@@ -108,10 +108,7 @@ nextVersion :: V.Version -> V.Version-nextVersion version =- version & CL.versionBranchL %~ increaseLastComp- where- increaseLastComp = reverse . (& ix 0 %~ (+ 1)) . reverse+nextVersion version = version & CL.versionBranchL . _last %~ (+ 1) pkgName :: P.Dependency -> PkgName