Skip to content

Commit

Permalink
Add Eq constraint for ghc-8.10 on toHashMapIO
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Aug 3, 2024
1 parent 4b9b55c commit 294373e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Streamly/Data/Fold/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ import Streamly.Internal.Data.IsMap.HashMap ()
-- /Pre-release/
--
{-# INLINE toHashMapIO #-}
toHashMapIO :: (MonadIO m, Hashable k) =>
toHashMapIO :: (MonadIO m, Hashable k
#if __GLASGOW_HASKELL__ == 810
, Eq k
#endif
) =>
(a -> k) -> Fold m a b -> Fold m a (HashMap k b)
toHashMapIO = toContainerIO

0 comments on commit 294373e

Please sign in to comment.