Re:TypeScript’s quirks: How inconsistencies make the languag...
by yawaramin on Saturday February 01, 2020 @01:35AM
(#22209094)
Out of curiousity, what exactly was the difficulty with decoding JSON in Haskell/
[ Parent
| on HN ]
Re:TypeScript’s quirks: How inconsistencies make the languag...
by sjy on Saturday February 01, 2020 @07:11AM
(#22210096)
I 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.
Re:TypeScript’s quirks: How inconsistencies make the languag...
by yawaramin on Saturday February 01, 2020 @01:29PM
(#22212203)
I'm interested in specifically what issues you had with JSON.
Re:TypeScript’s quirks: How inconsistencies make the languag...
by june11 on Saturday February 01, 2020 @02:22AM
(#22209222)
a quick search brings up a library, not sure why you would have trouble, other than maybe experience?
https://github.com/bos/aeson