Skip to content

Commit 655765c

Browse files
hdgarroodpaf31
authored andcommitted
Update old operator secions in Applicative laws (#112)
1 parent b20386e commit 655765c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Control/Applicative.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import Data.Unit (Unit, unit)
2626
-- | laws:
2727
-- |
2828
-- | - Identity: `(pure id) <*> v = v`
29-
-- | - Composition: `(pure <<<) <*> f <*> g <*> h = f <*> (g <*> h)`
29+
-- | - Composition: `pure (<<<) <*> f <*> g <*> h = f <*> (g <*> h)`
3030
-- | - Homomorphism: `(pure f) <*> (pure x) = pure (f x)`
31-
-- | - Interchange: `u <*> (pure y) = (pure ($ y)) <*> u`
31+
-- | - Interchange: `u <*> (pure y) = (pure (_ $ y)) <*> u`
3232
class Apply f <= Applicative f where
3333
pure :: forall a. a -> f a
3434

0 commit comments

Comments
 (0)