Skip to content

Commit 3037bf9

Browse files
authored
Merge pull request #409 from tweag/monoid-maybe
Weaken constraint on Monoid (Maybe a) instance
2 parents a3cb079 + b568756 commit 3037bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Monoid/Linear/Internal/Monoid.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ instance Monoid (Endo a) where
106106
-- See System.IO.Linear for instance ... => Monoid (IO a)
107107
-- See System.IO.Resource.Internal for instance ... => Monoid (RIO a)
108108

109-
instance Monoid a => Monoid (Maybe a) where
109+
instance Semigroup a => Monoid (Maybe a) where
110110
mempty = Nothing
111111

112112
-- See Data.List.Linear for instance ... => Monoid [a]

0 commit comments

Comments
 (0)