File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ instance DecidablyEmpty All
47
47
instance DecidablyEmpty [a ] where
48
48
isEmpty = null
49
49
instance
50
- #if MIN_VERSION_base(4,10 ,0)
50
+ #if MIN_VERSION_base(4,11 ,0)
51
51
Semigroup a
52
52
#else
53
53
Monoid a
@@ -57,8 +57,10 @@ instance
57
57
deriving instance (Num a , DecidablyEmpty a ) => DecidablyEmpty (Product a )
58
58
deriving instance (DecidablyEmpty a , Num a ) => DecidablyEmpty (Sum a )
59
59
deriving instance DecidablyEmpty a => DecidablyEmpty (Dual a )
60
- deriving instance Semigroup a => DecidablyEmpty (First a )
61
- deriving instance Semigroup a => DecidablyEmpty (Last a )
60
+ instance DecidablyEmpty (First a ) where
61
+ isEmpty (First a) = isNothing a
62
+ instance DecidablyEmpty (Last a ) where
63
+ isEmpty (Last a) = isNothing a
62
64
deriving instance DecidablyEmpty a => DecidablyEmpty (Identity a )
63
65
deriving instance Semigroup a => DecidablyEmpty (Option a )
64
66
deriving instance DecidablyEmpty m => DecidablyEmpty (WrappedMonoid m )
You can’t perform that action at this time.
0 commit comments