Which is not easy to work with in Haskell (list of heterogeneous list).
I guess is nicer for JavaScript? Anyway, I'm representing this silly type and
JSON parser in its own module, to isolate the mess. It allows a drop-in change
in the main type to fix parsing.
Stackage changed its JSON representation for package differences
It used to be nested objects:
which was very easy to work with in Haskell (map of maps).
Now it's this:
Which is not easy to work with in Haskell (list of heterogeneous list).
I guess is nicer for JavaScript? Anyway, I'm representing this silly type and JSON parser in its own module, to isolate the mess. It allows a drop-in change in the main type to fix parsing.