dhall-yaml: Convert between Dhall and YAML

[ compiler, gpl, library, program ] [ Propose Tags ] [ Report a vulnerability ]

Use this package if you want to convert between Dhall expressions and YAML. You can use this package as a library or an executable:

  • See the Dhall.Yaml module if you want to use this package as a library

  • Use the dhall-to-yaml-ng program from this package if you want an executable


[Skip to Readme]

Modules

[Last Documentation]

  • Dhall
    • Dhall.Yaml
    • Dhall.YamlToDhall

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.2.11, 1.2.12
Change log CHANGELOG.md
Dependencies aeson (>=1.0.0.0 && <2.2), ansi-terminal (>=0.6.3.1 && <1.2), base (>=4.11.0.0 && <5), bytestring (<0.12), dhall (>=1.31.0 && <1.43), dhall-json (>=1.6.0 && <1.8), dhall-yaml, exceptions (>=0.8.3 && <0.11), HsYAML (>=0.2 && <0.3), HsYAML-aeson (>=0.2 && <0.3), optparse-applicative (>=0.14.0.0 && <0.19), prettyprinter (>=1.7.0), prettyprinter-ansi-terminal (>=1.1.1 && <1.2), text (>=0.11.1.0 && <2.1), vector [details]
License GPL-3.0-only
Copyright 2019 Gabriella Gonzalez
Author Gabriella Gonzalez
Maintainer GenuineGabriella@gmail.com
Revised Revision 3 made by GabrielGonzalez at 2024-09-29T13:38:28Z
Category Compiler
Bug tracker https://github.com/dhall-lang/dhall-haskell/issues
Source repo head: git clone https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-yaml
Uploaded by GabrielGonzalez at 2023-04-19T03:11:15Z
Distributions Arch:1.2.11, NixOS:1.2.12
Executables yaml-to-dhall, dhall-to-yaml-ng
Downloads 6808 total (64 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-04-19 [all 2 reports]

Readme for dhall-yaml-1.2.12

[back to package description]

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