Skip to content

Commit 43c9dc7

Browse files
committed
Fixes for no overlapping instances
1 parent 84ee828 commit 43c9dc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Control/Applicative.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import Prelude
55
infixl 4 <*
66
infixl 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
1515
lift2 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
1818
lift3 f x y z = f <$> x <*> y <*> z

0 commit comments

Comments
 (0)