Re: Add instance Monoid ((f :+: g) a)
7 Aug
2019
7 Aug
'19
1:20 a.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
7 Aug
7 Aug
1:21 a.m.
New subject: Fwd: Add instance Monoid ((f :+: g) a)
---------- Forwarded message ---------
보낸사람: Dannyu NDos
2353
Age (days ago)
2353
Last active (days ago)
1 comments
1 participants
participants (1)
-
Dannyu NDos