... as standardized in: https://github.com/dhall-lang/dhall-lang/pull/266 This also adds `dhall lint` support for consolidating nested `let` expressions |
||
---|---|---|
.. | ||
dhall-to-json | ||
dhall-to-yaml | ||
examples | ||
src/Dhall | ||
tasty | ||
.gitignore | ||
CHANGELOG.md | ||
default.nix | ||
dhall-json.cabal | ||
LICENSE | ||
README.md | ||
release.nix | ||
Setup.hs | ||
shell.nix |
dhall-json 1.2.4
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
Quick start
If you have Nix installed then you can build and run this package using:
$ nix-build
$ result/bin/dhall-to-json <<< "{ foo = 1, bar = True }"
{"foo":1,"bar":true}
$ result/bin/dhall-to-json <<< "List/head Integer ([] : List Integer)"
null
$ result/bin/dhall-to-yaml <<< "{ foo = [1, 2, 3] : List Integer, bar = { baz = True } }"
foo:
- 1
- 2
- 3
bar:
baz: true