|
|
|
|
|
by ronjouch
3441 days ago
|
|
If you (or other passersby) have experience in how JSON decoding is achieved in Haskell (or other statically-typed functional languages), I'd be curious to read some sort of comparison with Elm. A quick Googling suggests Data.Aeson [1] is the popular library in Haskell land. Does it rank better on what I was hoping for (succinctness, ease of use)? If yes, would it be reachable within Elm, or are some Haskell constructs missing in Elm to achieve a similar experience? [1] https://hackage.haskell.org/package/aeson-0.6.1.0/docs/Data-... |
|
https://github.com/codygman/concise-json-parsing-in-haskell/...
Please give feedback if you don't mind. I'd also like to wait a bit before officially sharing with wider audiences then this comment gets.
Keep in mind that part one is "haskell/lens as explicit as possible" which is why I suggested looking at part two to draw conclusions.
Edit: just looked at elm decoder pipeline and it looks very similar to aeson.