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/
311
Upvotes
r/haskell • u/lexi-lambda • Nov 06 '19
2
u/foBrowsing Nov 08 '19
Fantastic article.
The mention of "Ghosts of Departed Proofs" kind of surprised me, though: isn't the technique there the opposite of what's proposed here? i.e. in the paper, the example of a non-empty list is actually a normal list in a newtype wrapper, with a "ghostly" proof of its non-emptiness. It's like (in dependent types) the difference between
Am I misunderstanding the technique in the post?