@hackage dhall-yaml1.2.12
Convert between Dhall and YAML
Categories
License
GPL-3.0-only
Maintainer
GenuineGabriella@gmail.com
Links
Versions
Installation
Dependencies (10)
- HsYAML >=0.2 && <0.3
- HsYAML-aeson >=0.2 && <0.3
- aeson >=1.0.0.0 && <2.3
- base >=4.11.0.0 && <5
- bytestring <0.12
- dhall >=1.31.0 && <1.43 Show all…
Dependents (1)
@hackage/ghcup
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.
Note that the dhall-json package also provides a dhall-to-yaml executable.
Currently, the behavior of the dhall-to-yaml and dhall-to-yaml-ng
executables should not differ much, but eventually the dhall-to-yaml-ng
executable should be able to support greater functionality due to using the
HsYAML package as an intermediate step in the transformation process.
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 ] }