File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,3 @@ lift2 f x y = f <$> x <*> y
1616
1717lift3 :: forall a b c d f . (Applicative f ) => (a -> b -> c -> d ) -> f a -> f b -> f c -> f d
1818lift3 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)
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import Prelude
44import Data.Array
55import 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+
710replicateM :: forall m a . (Monad m ) => Number -> m a -> m [a ]
811replicateM 0 _ = return []
912replicateM n m = do
You can’t perform that action at this time.
0 commit comments