quickcheck-instances 0.3.26 → 0.3.26.1
raw patch · 3 files changed
+16/−3 lines, 3 filesdep ~hashabledep ~semigroupsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hashable, semigroups
API changes (from Hackage documentation)
Files
- CHANGES +4/−0
- quickcheck-instances.cabal +2/−2
- src/Test/QuickCheck/Instances/Hashable.hs +10/−1
CHANGES view
@@ -1,3 +1,7 @@+0.3.26.1++* Support `hashable-1.4`+ 0.3.26 * Support base-4.16 / GHC-9.2
quickcheck-instances.cabal view
@@ -1,5 +1,5 @@ name: quickcheck-instances-version: 0.3.26+version: 0.3.26.1 synopsis: Common quickcheck instances description: QuickCheck instances.@@ -91,7 +91,7 @@ , case-insensitive >=1.2.0.4 && <1.3 , containers >=0.4.2.1 && <0.7 , data-fix >=0.3 && <0.4- , hashable >=1.2.7.0 && <1.4+ , hashable >=1.2.7.0 && <1.5 , integer-logarithms >=1.0.3 && <1.1 , old-time >=1.1.0.0 && <1.2 , OneTuple >=0.3 && <0.4
src/Test/QuickCheck/Instances/Hashable.hs view
@@ -6,7 +6,12 @@ import Prelude () import Test.QuickCheck.Instances.CustomPrelude -import Data.Hashable (Hashable, Hashed, hash, hashed)+import Data.Hashable (Hashable, Hashed, hashed)+#if MIN_VERSION_hashable(1,4,0)+import Data.Hashable (hashedHash)+#else+import Data.Hashable (hash)+#endif import Test.QuickCheck @@ -19,5 +24,9 @@ arbitrary = hashed <$> arbitrary instance CoArbitrary (Hashed a) where+#if MIN_VERSION_hashable(1,4,0)+ coarbitrary x = coarbitrary (hashedHash x :: Int)+#else coarbitrary x = coarbitrary (hash x :: Int)+#endif #endif