Notes and Exercises from Chapter 5 of Haskell Book
- Many errors caught before program execution, at compile time
- Compiler optimizations
- Documentation of programs
- Less code to write because you don't have to validate data at every step
Many, perhaps most, programming languages have type systems that feel like haggling with a petty merchant. Haskell provides a type system that more closely resembles a quiet, pleasant conversation with a colleague than an argument in the bazaar.