Skip to content

Commit 9d82cd3

Browse files
committed
Move zipWithA back temporarily
1 parent 4dcc233 commit 9d82cd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Control/Applicative.purs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ lift2 f x y = f <$> x <*> y
1616

1717
lift3 :: forall a b c d f. (Applicative f) => (a -> b -> c -> d) -> f a -> f b -> f c -> f d
1818
lift3 f x y z = f <$> x <*> y <*> z
19-
20-
zipWithA :: forall m a b c. (Applicative m) => (a -> b -> m c) -> [a] -> [b] -> m [c]
21-
zipWithA f xs ys = sequence (zipWith f xs ys)

src/Control/Monad.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import Prelude
44
import Data.Array
55
import Data.Traversable
66

7+
zipWithA :: forall m a b c. (Applicative m) => (a -> b -> m c) -> [a] -> [b] -> m [c]
8+
zipWithA f xs ys = sequence (zipWith f xs ys)
9+
710
replicateM :: forall m a. (Monad m) => Number -> m a -> m [a]
811
replicateM 0 _ = return []
912
replicateM n m = do

0 commit comments

Comments
 (0)