summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2026-02-27 21:47:33 +0100
committerEdoardo La Greca2026-02-27 21:47:33 +0100
commitfb42546b8e86a52eb5765c17e056ee6c24210d61 (patch)
tree62903448c60d59ccb72a35c40f02b2fa027304d9
parenteca919d2f2e3a342720f2ab5eb85b29e880a384b (diff)
fix typo in notes of lecture 10HEADmaster
-rw-r--r--lec10/notes.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/lec10/notes.md b/lec10/notes.md
index e65dbe9..3a3cac6 100644
--- a/lec10/notes.md
+++ b/lec10/notes.md
@@ -48,7 +48,7 @@ Our applied version of `fmap` lets us apply functions to values in a Functor con
Using `(<*>)` we can now implement `fmap2`, which is also available in the standard library as `liftA2`. The standard library also defines a synonym for `fmap`, `(<$>)`, available in `Control.Applicative`. As a result, `liftA2` is simply written as:
- liftA2 :: Applicative f => (a -> b -> c -> f a -> f b -> f c
+ liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c
liftA2 h fa fb = h <$> fa <*> fb
We can write `liftA3` similarly, with the same operators: