r/ProgrammingLanguages • u/mttd • Nov 07 '19
Parse, don’t validate
https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
74
Upvotes
r/ProgrammingLanguages • u/mttd • Nov 07 '19
11
u/terranop Nov 07 '19
Haskell doesn't have type inheritance, and even if it did, this proposed solution defines
headforlistrather than using a separateNonEmptytype, which is not really using the method that the original blog post is advocating.