|
|
|
|
|
by klodolph
2471 days ago
|
|
I feel this is a lesson every Haskell programmer goes through. Most Haskell programmers I know write types for all of the top-level declarations. Although it usually isn't necessary, it makes drastic improvements to the quality of error messages. |
|
It also provides valuable documentation. You can usually work out what a function does from just its type (and quite often, that's all you have to work with).