dhall-haskell/dhall-json
2019-07-31 04:44:36 +02:00
..
dhall-to-json Add --file option to dhall-json executables (#1107) 2019-07-18 19:08:47 +00:00
dhall-to-yaml Add --file option to dhall-json executables (#1107) 2019-07-18 19:08: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 Pretty-print output of {json,yaml}-to-dhall (#1150) 2019-07-24 13:33:41 +00:00
src/Dhall Remove old union literal syntax (#1176) 2019-07-31 04:44:36 +02:00
tasty dhall-json: Allow empty alternative for Nesting.Inline (#1122) 2019-07-19 16:19:19 +00:00
yaml-to-dhall Pretty-print output of {json,yaml}-to-dhall (#1150) 2019-07-24 13:33:41 +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 Version 1.24.0 → 1.25.0 (#1156) 2019-07-28 21:46:32 -07: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