From 43086ec53341c31e72a863557b90be46f267ae25 Mon Sep 17 00:00:00 2001 From: Jappie Klooster Date: Wed, 22 Sep 2021 18:19:49 +0200 Subject: [PATCH] Fix CI maybe --- Data/HashMap/Internal.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Data/HashMap/Internal.hs b/Data/HashMap/Internal.hs index d1d277fa..10d964ee 100644 --- a/Data/HashMap/Internal.hs +++ b/Data/HashMap/Internal.hs @@ -236,8 +236,12 @@ instance NF.NFData2 Leaf where -- -- to convert negatives use in ghci: -- >>> fromInteger (-3750763034362895579) :: Word64 + +#if MIN_VERSION_hashable(1,3,1) +type DefaultSalt = 14695981039346656037 -- fromInteger (-3750763034362895579) :: Word64 +#else type DefaultSalt = 15868100553162883236 -- old values https://github.com/haskell-unordered-containers/hashable/blame/ade7f97d1c59e9cfbad49b6ed130b90805311758/Data/Hashable/Class.hs#L202 --- type DefaultSalt = 14695981039346656037 -- fromInteger (-3750763034362895579) :: Word64 +#endif -- | A map from keys to values. A map cannot contain duplicate keys; -- each key can map to at most one value.