Skip to content

Commit 43086ec

Browse files
committed
Fix CI maybe
1 parent dc40252 commit 43086ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Data/HashMap/Internal.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,12 @@ instance NF.NFData2 Leaf where
236236
--
237237
-- to convert negatives use in ghci:
238238
-- >>> fromInteger (-3750763034362895579) :: Word64
239+
240+
#if MIN_VERSION_hashable(1,3,1)
241+
type DefaultSalt = 14695981039346656037 -- fromInteger (-3750763034362895579) :: Word64
242+
#else
239243
type DefaultSalt = 15868100553162883236 -- old values https://github.com/haskell-unordered-containers/hashable/blame/ade7f97d1c59e9cfbad49b6ed130b90805311758/Data/Hashable/Class.hs#L202
240-
-- type DefaultSalt = 14695981039346656037 -- fromInteger (-3750763034362895579) :: Word64
244+
#endif
241245

242246
-- | A map from keys to values. A map cannot contain duplicate keys;
243247
-- each key can map to at most one value.

0 commit comments

Comments
 (0)