dhall-haskell/dhall-yaml
Gabriel Gonzalez 4c7b75b503
Version 1.27.0 → 1.28.0 (#1575)
2019-12-05 19:28:39 -08:00
..
dhall-to-yaml-ng Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
src/Dhall Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
tasty dhall-json: Add a defaultConversion for converting maps (#1579) 2019-12-02 23:00:51 +00:00
yaml-to-dhall Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00: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
default.nix Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00
dhall-yaml.cabal Version 1.27.0 → 1.28.0 (#1575) 2019-12-05 19:28:39 -08:00
shell.nix Move HsYAML-based code to new package dhall-yaml (#1514) 2019-11-07 12:11:04 +00:00

README.md

dhall-yaml

For installation or development instructions, see:

Full documentation here:

Introduction

This dhall-yaml package provides a Dhall to YAML compiler, dhall-to-yaml-ng, and a tool for deriving Dhall from YAML code: yaml-to-dhall.

Tutorials for the analogous JSON tools are available in the dhall-json package:

Example

$ dhall-to-yaml-ng <<< "{ foo = [1, 2, 3], bar = { baz = True } }" > example.yaml
$ cat example.yaml
bar:
  baz: true
foo:
- 1
- 2
- 3
$ yaml-to-dhall '{ foo : List Natural, bar : { baz : Bool } }' < example.yaml
{ bar = { baz = True }, foo = [ 1, 2, 3 ] }