thoughtbot / maybe_haskell

Programming without Null
http://maybe-haskell.com
Other
80 stars 4 forks source link

Missing example equation in functions.md #45

Closed dplummer closed 9 years ago

dplummer commented 9 years ago

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

pbrisbin commented 9 years ago

Sorry about this, the example was changed at some point and I forgot to update this surrounding text. Thanks for reporting it. Fix coming soon.

pbrisbin commented 9 years ago

Fixed in 7007577