From 7a4681c04620e6d891fcc21db4b85e62e82f42c7 Mon Sep 17 00:00:00 2001 From: Jappie Klooster Date: Wed, 22 Sep 2021 18:25:40 +0200 Subject: [PATCH] Fix default hash assertion --- tests/Regressions.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Regressions.hs b/tests/Regressions.hs index 7fb7f57b..0dbc3fc8 100644 --- a/tests/Regressions.hs +++ b/tests/Regressions.hs @@ -144,8 +144,13 @@ assertDefaultHash = do -- appear to be set, we get the warning, yet the -- larger value in upstream is still being used. -- https://github.com/haskell-unordered-containers/hashable/blob/master/src/Data/Hashable/Class.hs#L221 +#if MIN_VERSION_hashable(1,3,1) + HAS.hash someString @=? + HAS.hashWithSalt 14695981039346656037 someString +#else HAS.hash someString @=? HAS.hashWithSalt 0xdc36d1615b7400a4 someString +#endif ------------------------------------------------------------------------ -- * Test list