Re: Add instance Monoid ((f :+: g) a)

6 Aug
2019
6 Aug
'19
3:50 p.m.
Ah, sorry. (:+:) is not an Applicative. It's still possible to make instance Monoid: instance Semigroup (f a) => Semigroup ((f :+: g) a) where InL x <> InL y = InL (x <> y) InL _ <> y = y x <> _ = x instance Monoid (f a) => Monoid ((f :+: g) a) where mempty = InL mempty

6 Aug
6 Aug
3:51 p.m.
New subject: Fwd: Add instance Monoid ((f :+: g) a)
---------- Forwarded message ---------
보낸사람: Dannyu NDos
2115
Age (days ago)
2115
Last active (days ago)
1 comments
1 participants
participants (1)
-
Dannyu NDos