Versionbump: Monoid&Semigroup-instances.
This commit is contained in:
parent
e28e0c5afb
commit
a008e32379
@ -91,10 +91,9 @@ data SheetGradeSummary = SheetGradeSummary
|
||||
|
||||
instance Monoid SheetGradeSummary where
|
||||
mempty = memptydefault
|
||||
mappend = mappenddefault
|
||||
|
||||
instance Semigroup SheetGradeSummary where
|
||||
(<>) = mappend -- TODO: remove for GHC > 8.4.x
|
||||
(<>) = mappenddefault
|
||||
|
||||
makeLenses_ ''SheetGradeSummary
|
||||
|
||||
@ -155,10 +154,9 @@ data SheetTypeSummary exampartid = SheetTypeSummary
|
||||
|
||||
instance Ord epid => Monoid (SheetTypeSummary epid) where
|
||||
mempty = memptydefault
|
||||
mappend = mappenddefault
|
||||
|
||||
instance Ord epid => Semigroup (SheetTypeSummary epid) where
|
||||
(<>) = mappend -- TODO: remove for GHC > 8.4.x
|
||||
(<>) = mappenddefault
|
||||
|
||||
makeLenses_ ''SheetTypeSummary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user