From cc3b4084bc328023b20cdf14ea6e9be1f86d940c Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 14 Sep 2021 14:45:50 +0200 Subject: Fix typo in haskell/composition --- haskell/composition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'haskell/composition.md') diff --git a/haskell/composition.md b/haskell/composition.md index f6754a5..14f84cb 100644 --- a/haskell/composition.md +++ b/haskell/composition.md @@ -176,7 +176,7 @@ Now look again at the type of `(.)` (all three mean the same): (.) :: (b -> c) -> ((a -> b) -> (a -> c)) ``` -(Why can't we remove the parentheses around the `b -> c` and `a -> c` in there? That is because it the type would then suddenly mean something different. Try to work that out for yourself!) +(Why can't we remove the parentheses around the `b -> c` and `a -> b` in there? That is because it the type would then suddenly mean something different. Try to work that out for yourself!) We can read this as: `(.)` takes a function `g :: b -> c`, a function `f :: a -> b` and a value `x :: a`. It applies `f` to `x`, applies `g` to the result, and returns the result of that. -- cgit v1.2.3-70-g09d2