dhall-yaml

Convert between Dhall and YAML

Version on this page:1.0.1
LTS Haskell 15.0:1.0.2
Stackage Nightly 2020-02-20:1.0.2
Latest on Hackage:1.0.2

See all snapshots dhall-yaml appears in

GPL-3.0-only licensed by Gabriel Gonzalez
Maintained by Gabriel439@gmail.com

Module documentation for 1.0.1

This version can be pinned in stack with:dhall-yaml-1.0.1@sha256:235bd92b0f5127517974ae41e240307a33417b6430e1f0c8447b4cd32c1b7c9e,3386

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 ] }

Changes

1.0.0

  • Initial release