dhall-haskell/dhall-json
2019-10-04 18:28:33 +02:00
..
dhall-to-json Add the --preserveNull flag and omit null fields by default on dhall-to-yaml (#1365) 2019-10-04 02:21:47 +00:00
dhall-to-yaml Add the --preserveNull flag and omit null fields by default on dhall-to-yaml (#1365) 2019-10-04 02:21:47 +00:00
examples Remove usage of legacy Optional syntax (#1091) 2019-07-14 18:36:41 +00:00
java Eta support for dhall-json (#1013) 2019-06-18 17:45:01 -07:00
json-to-dhall dhall-json: Add --output options (#1304) 2019-09-11 06:05:19 +00:00
src/Dhall Dhall.JSON: Update documentation of Nesting type (#1385) 2019-10-04 18:28:33 +02:00
tasty Fix {json,yaml}-to-dhall marshaling into empty lists (#1284) 2019-09-06 23:00:00 +00:00
yaml-to-dhall dhall-json: Add --output options (#1304) 2019-09-11 06:05:19 +00:00
.gitignore Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
CHANGELOG.md Enable --pretty by default for dhall-to-json (#1373) 2019-10-03 02:08:39 +00: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 Increase upper bounds on dhall-json dependencies (#1352) 2019-09-28 16:07:47 +00: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