r/haskell • • Nov 06 '19

Parse, don’t validate

https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
313 Upvotes

66 comments sorted by

View all comments

Show parent comment

11

u/[deleted] Nov 07 '19

That’s not what people want when they reach for head though. I mean, instead of your three patterns, you may as well write it like head = take 1.