From fb42546b8e86a52eb5765c17e056ee6c24210d61 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 27 Feb 2026 21:47:33 +0100 Subject: fix typo in notes of lecture 10 --- lec10/notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3