Re:Clojure vs. The Static Typing World
by chowells on Friday October 27, 2017 @12:42PM
(#15570006)
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.
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
[2] https://hackage.haskell.org/package/lens-aeson