For installation or development instructions, see:
Full documentation here:
This dhall-json package provides a Dhall to JSON compiler and a Dhall to YAML
compiler. The reason this package is called dhall-json is that the Haskell
yaml library uses the same data structure as Haskell's aeson library for
JSON
$ dhall-to-json <<< "{ foo = 1, bar = True }"
{"foo":1,"bar":true}
$ dhall-to-json <<< "List/head Natural ([] : List Natural)"
null
$ dhall-to-yaml <<< "{ foo = [1, 2, 3], bar = { baz = True } }"
foo:
- 1
- 2
- 3
bar:
baz: true