dhall-haskell/dhall-json
Gabriel Gonzalez d08ccfb384
Update website to use dhall-json for generating YAML (#1476)
Now that we depend on a pure Haskell implementation of YAML we can
use the `dhall-json` package for rendering YAML with GHCJS
2019-10-25 20:39:21 -07: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
json-to-dhall dhall-json: Add --output options (#1304) 2019-09-11 06:05:19 +00:00
src/Dhall Update website to use dhall-json for generating YAML (#1476) 2019-10-25 20:39:21 -07:00
tasty Fix dhall-to-yaml to quote special strings (#1474) 2019-10-25 08:29:32 -07: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 Version 1.26.1 → 1.27.0 (#1428) 2019-10-20 07:00:43 -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.26.1 → 1.27.0 (#1428) 2019-10-20 07:00:43 -07:00
LICENSE.BSD3 Version 1.26.1 → 1.27.0 (#1428) 2019-10-20 07:00:43 -07:00
LICENSE.GPLv3 Version 1.26.1 → 1.27.0 (#1428) 2019-10-20 07:00:43 -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