cabal-bounds 2.3.0 → 2.4.0
raw patch · 50 files changed
+278/−268 lines, 50 filesdep ~Cabal
Dependency ranges changed: Cabal
Files
- CHANGELOG +5/−0
- cabal-bounds.cabal +3/−3
- lib/CabalBounds/Update.hs +12/−7
- tests/goldenFiles/DropBothIgnoreA.cabal +16/−16
- tests/goldenFiles/DropBothOfAll.cabal +21/−21
- tests/goldenFiles/DropBothOfAllExes.cabal +10/−10
- tests/goldenFiles/DropBothOfExe.cabal +7/−7
- tests/goldenFiles/DropBothOfLib.cabal +7/−7
- tests/goldenFiles/DropBothOfOtherExe.cabal +6/−6
- tests/goldenFiles/DropBothOfTest.cabal +6/−6
- tests/goldenFiles/DropBothOnlyBase.cabal +8/−8
- tests/goldenFiles/DropUpperIgnoreA.cabal +5/−5
- tests/goldenFiles/DropUpperOfAll.cabal +5/−5
- tests/goldenFiles/DropUpperOfAllExes.cabal +4/−4
- tests/goldenFiles/DropUpperOfExe.cabal +4/−4
- tests/goldenFiles/DropUpperOfLib.cabal +3/−3
- tests/goldenFiles/DropUpperOfOtherExe.cabal +3/−3
- tests/goldenFiles/DropUpperOfTest.cabal +3/−3
- tests/goldenFiles/DropUpperOnlyBase.cabal +3/−3
- tests/goldenFiles/Format.cabal +3/−3
- tests/goldenFiles/UpdateBothIgnoreA.cabal +1/−1
- tests/goldenFiles/UpdateBothOfAll.cabal +1/−1
- tests/goldenFiles/UpdateBothOfAllExes.cabal +2/−2
- tests/goldenFiles/UpdateBothOfExe.cabal +3/−3
- tests/goldenFiles/UpdateBothOfLibrary.cabal +3/−3
- tests/goldenFiles/UpdateBothOfOtherExe.cabal +2/−2
- tests/goldenFiles/UpdateBothOfTest.cabal +2/−2
- tests/goldenFiles/UpdateByHaskellPlatform.cabal +1/−1
- tests/goldenFiles/UpdateLowerOfAll.cabal +11/−11
- tests/goldenFiles/UpdateLowerOfAllExes.cabal +6/−6
- tests/goldenFiles/UpdateLowerOfExe.cabal +5/−5
- tests/goldenFiles/UpdateLowerOfLibrary.cabal +5/−5
- tests/goldenFiles/UpdateLowerOfOtherExe.cabal +4/−4
- tests/goldenFiles/UpdateLowerOfTest.cabal +4/−4
- tests/goldenFiles/UpdateMajor1Lower.cabal +4/−4
- tests/goldenFiles/UpdateMajor1LowerAndUpper.cabal +20/−20
- tests/goldenFiles/UpdateMajor1Upper.cabal +4/−4
- tests/goldenFiles/UpdateMajor2Lower.cabal +12/−12
- tests/goldenFiles/UpdateMajor2Upper.cabal +6/−6
- tests/goldenFiles/UpdateMinorLower.cabal +11/−11
- tests/goldenFiles/UpdateMinorLowerAndUpper.cabal +3/−3
- tests/goldenFiles/UpdateMinorUpper.cabal +6/−6
- tests/goldenFiles/UpdateOnlyMissing.cabal +1/−1
- tests/goldenFiles/UpdateUpperFromFile.cabal +3/−3
- tests/goldenFiles/UpdateUpperOfAll.cabal +6/−6
- tests/goldenFiles/UpdateUpperOfAllExes.cabal +4/−4
- tests/goldenFiles/UpdateUpperOfExe.cabal +4/−4
- tests/goldenFiles/UpdateUpperOfLibrary.cabal +4/−4
- tests/goldenFiles/UpdateUpperOfOtherExe.cabal +3/−3
- tests/goldenFiles/UpdateUpperOfTest.cabal +3/−3
CHANGELOG view
@@ -1,3 +1,8 @@+2.4.0+-----+* Support Cabal 3.12+* Tested with ghc 9.4.7+ 2.3.0 ----- * Support Cabal 3.0
cabal-bounds.cabal view
@@ -1,13 +1,13 @@ cabal-version: >=1.10.0 name: cabal-bounds-version: 2.3.0+version: 2.4.0 license: BSD3 license-file: LICENSE maintainer: daniel.trstenjak@gmail.com author: Daniel Trstenjak tested-with: ghc ==7.6.2 ghc ==7.6.3 ghc ==7.8.3 ghc ==7.10.1 ghc ==8.0.1- ghc ==8.2.1 ghc ==8.4.2 ghc ==8.6.3 ghc ==8.10.1+ ghc ==8.2.1 ghc ==8.4.2 ghc ==8.6.3 ghc ==8.10.1 ghc ==9.4.7 synopsis: A command line program for managing the dependency versions in a cabal file.@@ -97,7 +97,7 @@ unordered-containers >=0.2.3.3 && <0.3, transformers >=0.3.0.0 && <0.6, cabal-lenses >=0.8.0 && <1.0,- Cabal >=3.0.0.0 && <4.0,+ Cabal >=3.12 && <4.0, filepath >=1.3 && <1.5, directory >=1.2 && <1.4, aeson >=1.2.3.0 && <1.6,
lib/CabalBounds/Update.hs view
@@ -7,6 +7,7 @@ import qualified Distribution.PackageDescription as D import qualified Distribution.Package as P import qualified Distribution.Version as V+import qualified Distribution.Types.VersionInterval as VI import Control.Lens import CabalBounds.Bound (UpdateBound(..)) import CabalBounds.Dependencies (Dependencies(..), filterDependency, dependencyIf)@@ -43,7 +44,7 @@ lowerVersion <- HM.lookup pkgName_ libs let newLowerVersion = comp `compOf` lowerVersion newLowerBound = V.LowerBound newLowerVersion V.InclusiveBound- newIntervals = (versionRange_ ^. CL.intervals) & _head . CL.lowerBound %~ updateIf (>) newLowerBound+ newIntervals = (versionRange_ ^. CL.intervals) & _head . CL.lowerBound %~ updateIfLower newLowerBound vrange = mkVersionRange newIntervals return $ dep & CL.versionRange .~ vrange where@@ -51,14 +52,16 @@ versionRange_ = dep ^. CL.versionRange lowerBound_ = fromMaybe CL.noLowerBound $ versionRange_ ^? CL.intervals . _head . CL.lowerBound - updateIf f newBound oldBound+ updateIfLower newBound oldBound | oldBound /= CL.noLowerBound- = if f oldBound newBound+ = if (version newBound) < (version oldBound) then newBound else oldBound | otherwise = newBound+ where+ version (V.LowerBound vers _) = vers updateDependency (UpdateUpper comp ifMissing) libs dep =@@ -69,7 +72,7 @@ upperVersion <- HM.lookup pkgName_ libs let newUpperVersion = nextVersion comp upperVersion newUpperBound = V.UpperBound newUpperVersion V.ExclusiveBound- newIntervals = (versionRange_ ^. CL.intervals) & _last . CL.upperBound %~ updateIf (<) newUpperBound+ newIntervals = (versionRange_ ^. CL.intervals) & _last . CL.upperBound %~ updateIfGreater newUpperBound vrange = mkVersionRange newIntervals return $ dep & CL.versionRange .~ vrange where@@ -77,14 +80,16 @@ pkgName_ = dep ^. CL.packageName . _Wrapped upperBound_ = fromMaybe V.NoUpperBound $ versionRange_ ^? CL.intervals . _last . CL.upperBound - updateIf f newBound oldBound+ updateIfGreater newBound oldBound | oldBound /= V.NoUpperBound- = if f oldBound newBound+ = if (version newBound) > (version oldBound) then newBound else oldBound | otherwise = newBound+ where+ version (V.UpperBound vers _) = vers updateDependency (UpdateBoth lowerComp upperComp ifMissing) libs dep =@@ -125,4 +130,4 @@ mkVersionRange :: [V.VersionInterval] -> V.VersionRange mkVersionRange [] = V.anyVersion-mkVersionRange vis = V.fromVersionIntervals . V.mkVersionIntervals $ vis+mkVersionRange vis = fromMaybe V.noVersion (V.fromVersionIntervals <$> VI.mkVersionIntervals vis)
tests/goldenFiles/DropBothIgnoreA.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -18,9 +18,9 @@ build-depends: base >=3, A >=0.1 && <0.2,- B -any,- C -any,- D -any+ B,+ C,+ D executable cabal-bounds main-is: ExeMain1.hs@@ -37,9 +37,9 @@ build-depends: base >=3, A >=0.1 && <0.2,- B -any,- C -any,- D -any+ B,+ C,+ D executable other-exe main-is: ExeMain2.hs@@ -56,9 +56,9 @@ build-depends: base >=3, A >=0.1 && <0.2,- B -any,- C -any,- D -any+ B,+ C,+ D test-suite some-test type: exitcode-stdio-1.0@@ -75,9 +75,9 @@ build-depends: base >=3, A >=0.1 && <0.2,- B -any,- C -any,- D -any+ B,+ C,+ D test-suite other-test type: exitcode-stdio-1.0@@ -94,6 +94,6 @@ build-depends: base >=3, A >=0.1 && <0.2,- B -any,- C -any,- D -any+ B,+ C,+ D
tests/goldenFiles/DropBothOfAll.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,10 +17,10 @@ other-modules: Paths_setup_config build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D executable cabal-bounds main-is: ExeMain1.hs@@ -36,10 +36,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D executable other-exe main-is: ExeMain2.hs@@ -55,10 +55,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D test-suite some-test type: exitcode-stdio-1.0@@ -74,10 +74,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D test-suite other-test type: exitcode-stdio-1.0@@ -93,7 +93,7 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D
tests/goldenFiles/DropBothOfAllExes.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -36,10 +36,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D executable other-exe main-is: ExeMain2.hs@@ -55,10 +55,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropBothOfExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -36,10 +36,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropBothOfLib.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,10 +17,10 @@ other-modules: Paths_setup_config build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D executable cabal-bounds main-is: ExeMain1.hs@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropBothOfOtherExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -55,10 +55,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropBothOfTest.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -74,10 +74,10 @@ ghc-options: -W build-depends: base >=3,- A -any,- B -any,- C -any,- D -any+ A,+ B,+ C,+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropBothOnlyBase.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -16,7 +16,7 @@ hs-source-dirs: src other-modules: Paths_setup_config build-depends:- base -any,+ base, A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,@@ -35,7 +35,7 @@ ghc-options: -W build-depends:- base -any,+ base, A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,@@ -54,11 +54,11 @@ ghc-options: -W build-depends:- base -any,+ base, A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -73,11 +73,11 @@ ghc-options: -W build-depends:- base -any,+ base, A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0@@ -92,7 +92,7 @@ ghc-options: -W build-depends:- base -any,+ base, A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,
tests/goldenFiles/DropUpperIgnoreA.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -39,7 +39,7 @@ A >=0.1 && <0.2, B >=0.2, C >=0.3,- D -any+ D executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2, C >=0.3,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2, C >=0.3,- D -any+ D test-suite other-test type: exitcode-stdio-1.0@@ -96,4 +96,4 @@ A >=0.1 && <0.2, B >=0.2, C >=0.3,- D -any+ D
tests/goldenFiles/DropUpperOfAll.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -39,7 +39,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D test-suite other-test type: exitcode-stdio-1.0@@ -96,4 +96,4 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D
tests/goldenFiles/DropUpperOfAllExes.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -39,7 +39,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropUpperOfExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -39,7 +39,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropUpperOfLib.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropUpperOfOtherExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropUpperOfTest.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1, B >=0.2, C >=0.3,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/DropUpperOnlyBase.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/Format.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateBothIgnoreA.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense
tests/goldenFiles/UpdateBothOfAll.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense
tests/goldenFiles/UpdateBothOfAllExes.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateBothOfExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateBothOfLibrary.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateBothOfOtherExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateBothOfTest.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateByHaskellPlatform.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense
tests/goldenFiles/UpdateLowerOfAll.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,8 +17,8 @@ other-modules: Paths_setup_config build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.7 @@ -36,8 +36,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <0.9 @@ -55,8 +55,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -74,8 +74,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -93,7 +93,7 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <1.0
tests/goldenFiles/UpdateLowerOfAllExes.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -36,8 +36,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <0.9 @@ -55,8 +55,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateLowerOfExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -36,8 +36,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <0.9 @@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateLowerOfLibrary.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,8 +17,8 @@ other-modules: Paths_setup_config build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.7 @@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateLowerOfOtherExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -55,8 +55,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateLowerOfTest.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -74,8 +74,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2
tests/goldenFiles/UpdateMajor1Lower.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -20,7 +20,7 @@ A <0.2, B <0.3, C <0.4,- D -any+ D executable cabal-bounds main-is: ExeMain1.hs@@ -58,7 +58,7 @@ A <0.2, B <0.3, C <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A <0.2, B <0.3, C <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateMajor1LowerAndUpper.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,10 +17,10 @@ other-modules: Paths_setup_config build-depends: base >=3,- A ==0.*,- B ==0.*,- C ==0.*,- D ==0.*+ A <1,+ B <1,+ C <1,+ D <1 executable cabal-bounds main-is: ExeMain1.hs@@ -36,10 +36,10 @@ ghc-options: -W build-depends: base >=3,- A ==0.*,- B ==0.*,- C ==0.*,- D ==0.*+ A <1,+ B <1,+ C <1,+ D <1 executable other-exe main-is: ExeMain2.hs@@ -55,10 +55,10 @@ ghc-options: -W build-depends: base >=3,- A ==0.*,- B ==0.*,- C ==0.*,- D ==0.*+ A <1,+ B <1,+ C <1,+ D <1 test-suite some-test type: exitcode-stdio-1.0@@ -74,10 +74,10 @@ ghc-options: -W build-depends: base >=3,- A ==0.*,- B ==0.*,- C ==0.*,- D ==0.*+ A <1,+ B <1,+ C <1,+ D <1 test-suite other-test type: exitcode-stdio-1.0@@ -93,7 +93,7 @@ ghc-options: -W build-depends: base >=3,- A ==0.*,- B ==0.*,- C ==0.*,+ A <1,+ B <1,+ C <1, D <1.0
tests/goldenFiles/UpdateMajor1Upper.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -39,7 +39,7 @@ A >=0.1 && <1, B >=0.2 && <1, C >=0.3 && <1,- D ==0.*+ D <1 executable other-exe main-is: ExeMain2.hs@@ -58,7 +58,7 @@ A >=0.1 && <1, B >=0.2 && <1, C >=0.3 && <1,- D ==0.*+ D <1 test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <1, B >=0.2 && <1, C >=0.3 && <1,- D ==0.*+ D <1 test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateMajor2Lower.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,8 +17,8 @@ other-modules: Paths_setup_config build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2 && <0.4, D >=0.7 @@ -36,10 +36,10 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2 && <0.4,- D ==0.8.*+ D >=0.8 && <0.9 executable other-exe main-is: ExeMain2.hs@@ -55,8 +55,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2 && <0.4, D >=0.8 @@ -74,8 +74,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2 && <0.4, D >=0.8 @@ -93,7 +93,7 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2 && <0.4, D >=0.8 && <1.0
tests/goldenFiles/UpdateMajor2Upper.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -19,7 +19,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D >=0.7 && <0.9 executable cabal-bounds@@ -38,7 +38,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 executable other-exe@@ -57,7 +57,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite some-test@@ -76,7 +76,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite other-test@@ -95,5 +95,5 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <1.0
tests/goldenFiles/UpdateMinorLower.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -17,8 +17,8 @@ other-modules: Paths_setup_config build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.7 @@ -36,8 +36,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <0.9 @@ -55,8 +55,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -74,8 +74,8 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 @@ -93,7 +93,7 @@ ghc-options: -W build-depends: base >=3,- A ==0.1.*,- B ==0.2.*,+ A >=0.1 && <0.2,+ B >=0.2 && <0.3, C >=0.2.5 && <0.4, D >=0.8.2 && <1.0
tests/goldenFiles/UpdateMinorLowerAndUpper.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2, C >=0.2.5 && <0.4,- D ==0.8.2.*+ D >=0.8.2 && <0.8.3 test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2, C >=0.2.5 && <0.4,- D ==0.8.2.*+ D >=0.8.2 && <0.8.3 test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateMinorUpper.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -19,7 +19,7 @@ base >=3, A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2,- C ==0.3.*,+ C >=0.3 && <0.4, D >=0.7 && <0.8.3 executable cabal-bounds@@ -38,7 +38,7 @@ base >=3, A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 executable other-exe@@ -57,7 +57,7 @@ base >=3, A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.8.3 test-suite some-test@@ -76,7 +76,7 @@ base >=3, A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.8.3 test-suite other-test@@ -95,5 +95,5 @@ base >=3, A >=0.1 && <0.3.1, B >=0.2 && <0.3.0.2,- C ==0.3.*,+ C >=0.3 && <0.4, D <1.0
tests/goldenFiles/UpdateOnlyMissing.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense
tests/goldenFiles/UpdateUpperFromFile.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <2.3, B >=0.2 && <0.3, C >=0.3 && <0.6,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <2.3, B >=0.2 && <0.3, C >=0.3 && <0.6,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateUpperOfAll.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -19,7 +19,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D >=0.7 && <0.9 executable cabal-bounds@@ -38,7 +38,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 executable other-exe@@ -57,7 +57,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite some-test@@ -76,7 +76,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite other-test@@ -95,5 +95,5 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <1.0
tests/goldenFiles/UpdateUpperOfAllExes.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -38,7 +38,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 executable other-exe@@ -57,7 +57,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite some-test@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateUpperOfExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -38,7 +38,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 executable other-exe@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateUpperOfLibrary.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -19,7 +19,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D >=0.7 && <0.9 executable cabal-bounds@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateUpperOfOtherExe.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -57,7 +57,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite some-test@@ -77,7 +77,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite other-test type: exitcode-stdio-1.0
tests/goldenFiles/UpdateUpperOfTest.cabal view
@@ -1,4 +1,4 @@-cabal-version: >=1.9.2+cabal-version: >=1.10 name: setup-config version: 0.1 license: UnspecifiedLicense@@ -58,7 +58,7 @@ A >=0.1 && <0.2, B >=0.2 && <0.3, C >=0.3 && <0.4,- D -any+ D test-suite some-test type: exitcode-stdio-1.0@@ -76,7 +76,7 @@ base >=3, A >=0.1 && <0.4, B >=0.2 && <0.4,- C ==0.3.*,+ C >=0.3 && <0.4, D <0.9 test-suite other-test