on master help sign in
Fix Hashable Eq constraint issue (#2422)
commit66c349c46f749db0d6d70d8800f095b1edbbd665 authorRanjeet Ranjan <ranjeetr@composewell.com> dateWed 5 Jul 2023, 22:25 (3 years ago) parent511043b
1 file changed+4
src/Streamly/Internal/Data/IsMap/HashMap.hs+4
src/Streamly/Internal/Data/IsMap/HashMap.hs+4
@@ -20,7 +20,11 @@ import Streamly.Internal.Data.IsMap (IsMap(..))
2020
2121import qualified Data.HashMap.Strict as HashMap
2222
23+#if MIN_VERSION_hashable(1,4,0)
2324instance (Hashable k) => IsMap (HashMap.HashMap k) where
25+#else
26+instance (Hashable k, Eq k) => IsMap (HashMap.HashMap k) where
27+#endif
2428 type Key (HashMap.HashMap k) = k
2529
2630 mapEmpty = HashMap.empty