dhall-haskell/dhall-json
2019-08-06 13:24:18 +02:00
..
dhall-to-json Fix --version flag handling for dhall-json package (#1199) 2019-08-06 06:28:46 +00:00
dhall-to-yaml Fix --version flag handling for dhall-json package (#1199) 2019-08-06 06:28:46 +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 Fix --version flag handling for dhall-json package (#1199) 2019-08-06 06:28:46 +00:00
src/Dhall dhall-json: Nesting: Support empty alternatives as contents (#1204) 2019-08-06 13:24:18 +02:00
tasty dhall-json: Nesting: Support empty alternatives as contents (#1204) 2019-08-06 13:24:18 +02:00
yaml-to-dhall Fix --version flag handling for dhall-json package (#1199) 2019-08-06 06:28:46 +00:00
.gitignore Migrate dhall-{bash,json,text} into this repository (#661) 2018-10-28 17:32:51 -07:00
CHANGELOG.md Version 1.24.0 → 1.25.0 (#1156) 2019-07-28 21:46:32 -07: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 Fix --version flag handling for dhall-json package (#1199) 2019-08-06 06:28:46 +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