dhall-haskell/dhall-json
Gabriel Gonzalez 4c7b75b503
Version 1.27.0 → 1.28.0 (#1575)
2019-12-05 19:28:39 -08: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 Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
examples Remove usage of legacy Optional syntax (#1091) 2019-07-14 18:36:41 +00:00
json-to-dhall Format more text literals as multi-line strings (#1508) 2019-11-04 03:31:49 +00:00
src/Dhall dhall-json: Add a defaultConversion for converting maps (#1579) 2019-12-02 23:00:51 +00:00
tasty dhall-json: Add a defaultConversion for converting maps (#1579) 2019-12-02 23:00:51 +00:00
.gitignore Migrate `dhall-{bash,json,text}` into this repository (#661) 2018-10-28 17:32:51 -07:00
CHANGELOG.md Version 1.27.0 → 1.28.0 (#1575) 2019-12-05 19:28:39 -08:00
LICENSE Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
README.md Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
Setup.hs Migrate `dhall-{bash,json,text}` into this repository (#661) 2018-10-28 17:32:51 -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.27.0 → 1.28.0 (#1575) 2019-12-05 19:28:39 -08:00
shell.nix Migrate `dhall-{bash,json,text}` into this repository (#661) 2018-10-28 17:32:51 -07:00

README.md

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 based on that. The dhall-to-yaml executable is a "basic" version of the dhall-to-yaml-ng executable in the dhall-yaml package.

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

Development

This package's dhall-to-yaml and dhall-yaml's dhall-to-yaml-ng should be kept as closely in sync as possible. Common code for these executables lives in this package, tests live in dhall-yaml.