basvandijk / scientific

Arbitrary-precision floating-point numbers represented using scientific notation
BSD 3-Clause "New" or "Revised" License
73 stars 40 forks source link

Support GHC 9.12 #101

Open andreasabel opened 1 month ago

andreasabel commented 1 month ago

[__5] rejecting: base-4.21.0.0/installed-cc73 (conflict: scientific => base>=4.15 && <4.21)

erikd commented 3 weeks ago

I was able to get it to compile and pass all tests with the diff:

diff --git a/cabal.project b/cabal.project
index e6fdbad..c97a946 100644
--- a/cabal.project
+++ b/cabal.project
@@ -1 +1,6 @@
 packages: .
+
+allow-newer:
+  , integer-logarithms:base
+  , hashable:base
+  , splitmix:base
diff --git a/scientific.cabal b/scientific.cabal
index aaabe13..989dd43 100644
--- a/scientific.cabal
+++ b/scientific.cabal
@@ -104,7 +104,7 @@ library
       , bytestring-builder  >=0.10.4 && <0.11

   else
-    build-depends: bytestring >=0.10.4 && <0.12
+    build-depends: bytestring >=0.10.4 && <0.13

   if impl(ghc >=9.0)
     build-depends: base >=4.15