dhall-haskell/dhall-json
Gabriel Gonzalez 462f82a0f8 Build against `optparse-applicative-0.15` (#1081)
Related to https://github.com/commercialhaskell/stackage/issues/4693
2019-07-07 11:49:11 +00:00
..
dhall-to-json Change YAML/JSON encoding for `NaN`/`Infinity`/`-Infinity` (#946) 2019-05-12 16:04:25 -07:00
dhall-to-yaml Eta support for dhall-json (#1013) 2019-06-18 17:45:01 -07:00
examples Remove cruft related to the removed 'constructors' keyword (#1077) 2019-07-06 22:38:02 +00:00
java Eta support for dhall-json (#1013) 2019-06-18 17:45:01 -07:00
json-to-dhall Use json-to-dhall to implement yaml-to-dhall (#977) 2019-05-30 08:54:35 -07:00
src/Dhall Fix `dhall-json`'s support for preserving alternative names (#1080) 2019-07-07 10:27:54 +00:00
tasty Fix `dhall-json`'s support for preserving alternative names (#1080) 2019-07-07 10:27:54 +00:00
yaml-to-dhall Eta support for dhall-json (#1013) 2019-06-18 17:45:01 -07:00
.gitignore Migrate `dhall-{bash,json,text}` into this repository (#661) 2018-10-28 17:32:51 -07:00
CHANGELOG.md Version 1.23.0 → 1.24.0 (#984) 2019-06-06 17:14:43 -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
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 Build against `optparse-applicative-0.15` (#1081) 2019-07-07 11:49:11 +00:00
release.nix 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

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. 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