At first I thought there was a typo in book/haskell-basics/functions.md where six is referred to just once:
For example, Haskell knows that six is an Int because it saw
that 5 is an Int. Since you can only use (+) with arguments of the same
type, it enforced that 1 is also an Int. Knowing that (+) returns the
same type as its arguments, the final result of the addition must itself be an
Int.
However, re-reading it (after I almost created a pull request to fix it), I noticed it referring to 1. So I gather it's missing an example something like six = 5 + 1
At first I thought there was a typo in
book/haskell-basics/functions.md
wheresix
is referred to just once:However, re-reading it (after I almost created a pull request to fix it), I noticed it referring to
1
. So I gather it's missing an example something likesix = 5 + 1