aecfbc9acc
The motivation for this change is: * To catch build failures in downstream packages whenever we make a breaking change to the `dhall` API * To reduce the amount of work I need in order to cut a release for all of these packages * To better share Nix/CI-related logic between the projects Note that I have not yet migrated `dhall-nix` in. I'm waiting for https://github.com/dhall-lang/dhall-nix/issues/17 to be fixed since `dhall-nix` is incompatible with later versions of `megaparsec` due to `hnix`. |
||
---|---|---|
.. | ||
dhall-to-json | ||
dhall-to-yaml | ||
examples | ||
src/Dhall | ||
tasty | ||
.gitignore | ||
cabal.project | ||
CHANGELOG.md | ||
default.nix | ||
dhall-json.cabal | ||
LICENSE | ||
README.md | ||
release.nix | ||
Setup.hs | ||
shell.nix | ||
stack.yaml |
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