Skip to content

Commit

Permalink
Fix warnings on noncanonical mappend
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Sep 9, 2023
1 parent 4115223 commit cbd5617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Data/IntervalMap/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ instance (Hashable k, Hashable a) => Hashable (IntervalMap k a) where

instance Ord k => Monoid (IntervalMap k a) where
mempty = empty
mappend = union
mappend = (<>)
mconcat = unions

instance Ord k => Semigroup.Semigroup (IntervalMap k a) where
Expand Down
2 changes: 1 addition & 1 deletion src/Data/IntervalSet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ instance (Ord r) => BoundedLattice (IntervalSet r)

instance Ord r => Monoid (IntervalSet r) where
mempty = empty
mappend = union
mappend = (<>)
mconcat = unions

instance (Ord r) => Semigroup.Semigroup (IntervalSet r) where
Expand Down

0 comments on commit cbd5617

Please sign in to comment.