json-to-haskell
json-to-haskell copied to clipboard
In goes JSON, out comes a complete Haskell model complete with instances! CLI and web interface available.
Test failure should be reproducible with `cabal v2-test --constraint 'unordered-containers >= 0.2.16`, as that release changed ordering returned from `HashMap`s via `toList`, folds etc. ``` Running 1 test suites... Test...
In the spirit of trying to fully automate the generation of my Haskell code (to allow me to quickly iterate on JSON design and then update the code without hand...
I know of two different ways to encode sum types in json. First encoding: ```json { "values": [ {"type": "left", "value": 1}, {"type": "right", "value": "foo"} ] } ``` json-to-haskell's...
Perhaps provide a comparison with and link to json-autotype, which I've been using for several years: https://hackage.haskell.org/package/json-autotype