mirror of
https://github.com/composewell/streamly.git
synced 2024-10-03 22:38:16 +03:00
Fix Hashable Eq constraint issue (#2422)
This commit is contained in:
parent
511043b892
commit
66c349c46f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user