Skip to content

Commit e8f61db

Browse files
committed
Fix one last instance
...knock on wood.
1 parent d2a1df7 commit e8f61db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Monoid/DecidablyEmpty.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ instance DecidablyEmpty (First a) where
6262
instance DecidablyEmpty (Last a) where
6363
isEmpty (Last a) = isNothing a
6464
deriving instance DecidablyEmpty a => DecidablyEmpty (Identity a)
65-
deriving instance Semigroup a => DecidablyEmpty (Option a)
65+
instance Semigroup a => DecidablyEmpty (Option a) where
66+
isEmpty (Option a) = isNothing a
6667
deriving instance DecidablyEmpty m => DecidablyEmpty (WrappedMonoid m)
6768
instance (Ord a, Bounded a) => DecidablyEmpty (Max a)
6869
instance (Ord a, Bounded a) => DecidablyEmpty (Min a)

0 commit comments

Comments
 (0)