by thinkpad20 · 12y ago · 0 comments
(If anyone is aware of a canonical library for this, let me know. I wrote my own JSON library which has this functionality but it's not particularly robust or performant).
The only functions returning «Maybe» are «decode» and friends, and those have «Either String» variants.
You can use «modifyFailure» and «typeMismatch» (and the «with» wrappers) to get more descriptive messages, without a bit of help they are quite useless.