Use ghc-prim < 0.7, not <= 0.6.1, as upper version bounds
authorRyan Scott <ryan.gl.scott@gmail.com>
Tue, 9 Apr 2019 12:52:21 +0000 (08:52 -0400)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Wed, 10 Apr 2019 03:23:50 +0000 (23:23 -0400)
Using `ghc-prim <= 0.6.1` is somewhat dodgy from a PVP point of view,
as it makes it awkward to support new minor releases of `ghc-prim`.
Let's instead use `< 0.7`, which is the idiomatic way of expressing
PVP-compliant upper version bounds.

ghc/ghc-bin.cabal.in
libraries/base/base.cabal
libraries/ghc-compact/ghc-compact.cabal
libraries/ghc-heap/ghc-heap.cabal.in
libraries/integer-gmp/integer-gmp.cabal

index 279e127..0c2cb2d 100644 (file)
@@ -58,7 +58,7 @@ Executable ghc
         Build-depends:
             containers     >= 0.5 && < 0.7,
             deepseq        == 1.4.*,
-            ghc-prim       >= 0.5.0 && <= 0.6.1,
+            ghc-prim       >= 0.5.0 && < 0.7,
             ghci           == @ProjectVersionMunged@,
             haskeline      == 0.7.*,
             time           >= 1.8 && < 1.10,
index bac4897..c4f9cfb 100644 (file)
@@ -95,7 +95,7 @@ Library
         UnliftedFFITypes
         Unsafe
 
-    build-depends: rts == 1.0, ghc-prim >= 0.5.1.0 && <= 0.6.1
+    build-depends: rts == 1.0, ghc-prim >= 0.5.1.0 && < 0.7
 
     -- sanity-check to ensure exactly one flag is set
     if !((flag(integer-gmp) && !flag(integer-simple)) || (!flag(integer-gmp) && flag(integer-simple)))
index e36982f..87c3b8d 100644 (file)
@@ -36,7 +36,7 @@ library
     UnboxedTuples
     CPP
 
-  build-depends: ghc-prim   >= 0.5.3 && <= 0.6.1,
+  build-depends: ghc-prim   >= 0.5.3 && < 0.7,
                  base       >= 4.9.0 && < 4.14,
                  bytestring >= 0.10.6.0
   ghc-options: -Wall
index 7ab4f33..7beb775 100644 (file)
@@ -23,7 +23,7 @@ library
   default-language: Haskell2010
 
   build-depends:    base             >= 4.9.0 && < 5.0
-                  , ghc-prim         > 0.2 && <= 0.6.1
+                  , ghc-prim         > 0.2 && < 0.7
                   , rts              == 1.0.*
 
   ghc-options:      -Wall
index 008da1d..648f500 100644 (file)
@@ -58,7 +58,7 @@ library
     StandaloneDeriving
     UnboxedTuples
     UnliftedFFITypes
-  build-depends:       ghc-prim >= 0.5.1.0 && <= 0.6.1
+  build-depends:       ghc-prim >= 0.5.1.0 && < 0.7
   hs-source-dirs:      src/
   -- We need to set the unit ID to integer-wired-in
   -- (without a version number) as it's magic.