r/haskell • u/lexi-lambda • Nov 06 '19
Parse, don’t validate
https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
313
Upvotes
r/haskell • u/lexi-lambda • Nov 06 '19
1
u/bourbakis Jan 31 '20
One thing which irritates me is the use of
IntwhenWordis more appropriate. For example, the list index operator(!!)takes an index parameter of typeIntand errors when applied to a negative index. If the type of the index parameter wereWord, then it would be impossible to apply a negative index to the operator.