dhall-haskell/dhall-json
2019-03-06 20:49:41 -08:00
..
dhall-to-json Add new --omitEmpty option (#842) 2019-03-06 14:52:40 -08:00
dhall-to-yaml Add new --omitEmpty option (#842) 2019-03-06 14:52:40 -08:00
examples Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
src/Dhall Add new --omitEmpty option (#842) 2019-03-06 14:52:40 -08:00
tasty Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
.gitignore Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
CHANGELOG.md Version 1.20.1 → 1.21.0 (#839) 2019-03-06 20:49:41 -08:00
default.nix Install mostly static executables on OS X when using Nix (#830) 2019-03-04 19:43:31 -08:00
dhall-json.cabal Version 1.20.1 → 1.21.0 (#839) 2019-03-06 20:49:41 -08:00
LICENSE Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
README.md Version 1.19.1 → 1.20.0 (#767) 2018-12-29 11:48:21 -06:00
release.nix Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
Setup.hs Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
shell.nix Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00

dhall-json

For installation or development instructions, see:

Full documentation here:

Introduction

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

Example

$ 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