Skip to content
This repository was archived by the owner on Jun 6, 2018. It is now read-only.

Commit c1aefbf

Browse files
committed
Updates for 0.7
1 parent e0586e7 commit c1aefbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Data/Functor/Coproduct.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Data.Functor.Coproduct where
44

5+
import Prelude
6+
57
import Data.Either
68
import Data.Foldable
79
import Data.Traversable
@@ -27,7 +29,7 @@ coproduct :: forall f g a b. (f a -> b) -> (g a -> b) -> Coproduct f g a -> b
2729
coproduct f g = either f g <<< runCoproduct
2830

2931
instance functorCoproduct :: (Functor f, Functor g) => Functor (Coproduct f g) where
30-
(<$>) f = Coproduct <<< coproduct (Left <<< (<$>) f) (Right <<< (<$>) f)
32+
map f = Coproduct <<< coproduct (Left <<< (<$>) f) (Right <<< (<$>) f)
3133

3234
instance foldableCoproduct :: (Foldable f, Foldable g) => Foldable (Coproduct f g) where
3335
foldr f z = coproduct (foldr f z) (foldr f z)

0 commit comments

Comments
 (0)