Skip to content

Commit

Permalink
Fix Hashable Eq constraint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rnjtranjan committed Jun 24, 2023
1 parent 8419705 commit 0d6283b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Streamly/Internal/Data/IsMap/HashMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ import Streamly.Internal.Data.IsMap (IsMap(..))

import qualified Data.HashMap.Strict as HashMap

instance (Eq k, Hashable k) => IsMap (HashMap.HashMap k) where
#if MIN_VERSION_base(4,16,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
Expand Down

0 comments on commit 0d6283b

Please sign in to comment.