File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import Prelude
55infixl 4 <*
66infixl 4 *>
77
8- (<*) :: forall a b f . (Applicative f ) => f a -> f b -> f a
8+ (<*) :: forall a b f . (Functor f , Applicative f ) => f a -> f b -> f a
99(<*) x y = const <$> x <*> y
1010
11- (*>) :: forall a b f . (Applicative f ) => f a -> f b -> f b
11+ (*>) :: forall a b f . (Functor f , Applicative f ) => f a -> f b -> f b
1212(*>) x y = const id <$> x <*> y
1313
14- lift2 :: forall a b c f . (Applicative f ) => (a -> b -> c ) -> f a -> f b -> f c
14+ lift2 :: forall a b c f . (Functor f , Applicative f ) => (a -> b -> c ) -> f a -> f b -> f c
1515lift2 f x y = f <$> x <*> y
1616
17- lift3 :: forall a b c d f . (Applicative f ) => (a -> b -> c -> d ) -> f a -> f b -> f c -> f d
17+ lift3 :: forall a b c d f . (Functor f , Applicative f ) => (a -> b -> c -> d ) -> f a -> f b -> f c -> f d
1818lift3 f x y z = f <$> x <*> y <*> z
You can’t perform that action at this time.
0 commit comments