3 ms·
The easiest way to use JSON as dynamically typed data in Haskell is with the lens[1] and lens-aeson[2] packages. The type signatures those use are astounding, a
by chowells 9y ago
The easiest way to use JSON as dynamically typed data in Haskell is with the lens[1] and lens-aeson[2] packages. The type signatures those use are astounding, and not trivial to understand.
But the code that results is very simple while remaining strongly typed.
It ends up being not that different in style from something like hpricot in ruby.
[1] https://hackage.haskell.org/package/lens https://hackage.haskell.org/package/lens
[2] https://hackage.haskell.org/package/lens-aeson https://hackage.haskell.org/package/lens-aeson