Add instance Alternative (f :+: g)

6 Aug
2019
6 Aug
'19
3:44 p.m.
instance Alternative f => Alternative (f :+: g) where empty = InL empty InL x <|> InL y = InL (x <|> y) InL _ <|> y = y x <|> _ = x This is analogous to the proposed Alternative Either instance.
2115
Age (days ago)
2115
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dannyu NDos