Fix Hashable Eq constraint issue (#2422)

This commit is contained in:
Ranjeet Ranjan 2023-07-05 22:25:58 +05:30 committed by GitHub
parent 511043b892
commit 66c349c46f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,11 @@ import Streamly.Internal.Data.IsMap (IsMap(..))
import qualified Data.HashMap.Strict as HashMap
#if MIN_VERSION_hashable(1,4,0)
instance (Hashable k) => IsMap (HashMap.HashMap k) where
#else
instance (Hashable k, Eq k) => IsMap (HashMap.HashMap k) where
#endif
type Key (HashMap.HashMap k) = k
mapEmpty = HashMap.empty