3 ms·
Out of curiousity, what exactly was the difficulty with decoding JSON in Haskell/
by yawaramin 7y ago
Out of curiousity, what exactly was the difficulty with decoding JSON in Haskell/
- june11 7y agoa quick search brings up a library, not sure why you would have trouble, other than maybe experience? https://github.com/bos/aeson https://github.com/bos/aeson
- yawaramin 7y agoI was replying to someone who said they had trouble.
- sjy 7y agoI was trying to use Aeson, which as noted in this excellent tutorial [1] (which didn’t exist when I first tried it) is “hopelessly magical for people who try to learn it by looking at provided examples, and existing tutorials don’t help that much.“ The rest of the tutorial should give you some idea of why I say that parsing JSON in Haskell is complex, at least if you’re used to doing it in JavaScript. [1]: https://artyom.me/aeson https://artyom.me/aeson
- yawaramin 7y agoI'm interested in specifically what issues you had with JSON.