
8 Aug
2019
8 Aug
'19
1:37 a.m.
On Tue, Aug 6, 2019 at 9:40 PM Dannyu NDos
instance Monoid e => Alternative (Either e) where empty = left mempty Left x <|> Left y = Left (x <> y) Left _ <|> y = y x <|> _ = x
Leftmost Right is returned for sake of consistence with Semigroup instance.