Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Data/HashMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ instance Bifoldable HashMap where
--
-- >>> fromList [(1,'a'),(2,'b')] <> fromList [(2,'c'),(3,'d')]
-- fromList [(1,'a'),(2,'b'),(3,'d')]
instance Hashable k => Semigroup (HashMap k v) where
instance Eq k => Semigroup (HashMap k v) where
(<>) = union
{-# INLINE (<>) #-}
stimes = stimesIdempotentMonoid
Expand All @@ -327,7 +327,7 @@ instance Hashable k => Semigroup (HashMap k v) where
--
-- >>> mappend (fromList [(1,'a'),(2,'b')]) (fromList [(2,'c'),(3,'d')])
-- fromList [(1,'a'),(2,'b'),(3,'d')]
instance Hashable k => Monoid (HashMap k v) where
instance Eq k => Monoid (HashMap k v) where
mempty = empty
{-# INLINE mempty #-}
mappend = (<>)
Expand Down
4 changes: 2 additions & 2 deletions Data/HashSet/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ instance Foldable.Foldable HashSet where
--
-- >>> fromList [1,2] <> fromList [2,3]
-- fromList [1,2,3]
instance Hashable a => Semigroup (HashSet a) where
instance Eq a => Semigroup (HashSet a) where
(<>) = union
{-# INLINE (<>) #-}
stimes = stimesIdempotentMonoid
Expand All @@ -206,7 +206,7 @@ instance Hashable a => Semigroup (HashSet a) where
--
-- >>> mappend (fromList [1,2]) (fromList [2,3])
-- fromList [1,2,3]
instance Hashable a => Monoid (HashSet a) where
instance Eq a => Monoid (HashSet a) where
mempty = empty
{-# INLINE mempty #-}
mappend = (<>)
Expand Down