Skip to content

Commit

Permalink
Remove incorrect Expiring Semigroup instance
Browse files Browse the repository at this point in the history
It's not hard to make it correct, but since no test was failing, I'd
have to write a test for functionality I'm not using.
  • Loading branch information
dustin committed Aug 21, 2023
1 parent e364975 commit 81c8b58
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Data/Map/Strict/Expiring.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ data Map g k a = Map {
instance Ord g => Foldable (Map g k) where
foldMap f = foldMap (f . value) . Map.elems . map

instance (Ord a, Ord g, Ord k) => Semigroup (Map g k a) where
Map m1 g1 a1 <> Map m2 g2 a2 = Map (m1 <> m2) (max g1 g2) (a1 <> a2)

-- | Make a new empty Map at the starting generation.
new :: g -> Map g k a
new g = Map Map.empty g Map.empty
Expand Down

0 comments on commit 81c8b58

Please sign in to comment.