Functor instance for Either now #181 is fixed
commit90a8918b8f563fb6343669c2a554c4c46e105add
authorGary Burgess <gary.burgess@gmail.com>
dateMon 10 Feb 2014, 14:43 (13 years ago)
parent7cf7bcb
prelude/prelude.purs−2
@@ -468,11 +468,9 @@ module Either where
468468 either f _ (Left a) = f a
469469 either _ g (Right b) = g b
470470
471− {-
472471 instance Prelude.Functor (Either a) where
473472 (<$>) _ (Left x) = Left x
474473 (<$>) f (Right y) = Right (f y)
475− -}
476474
477475 instance Prelude.Applicative (Either e) where
478476 pure = Right