Sign inSign up

dhallhaskell/dhall-yaml

By dhallhaskell

•Updated over 1 year ago

Convert between Dhall and YAML

Image
0

8.4K

dhallhaskell/dhall-yaml repository overview

This image lets you run the following executables built from the dhall-json Haskell package:

  • dhall-to-yaml-ng
  • yaml-to-dhall
$ docker run --interactive --rm dhallhaskell/dhall-yaml dhall-to-yaml-ng <<< '{ x = 1, y = True }'
- x: 1
- y: true
$ docker run --interactive --rm dhallhaskell/dhall-yaml dhall-to-yaml-ng <<< 'https://prelude.dhall-lang.org/List/generate 5 Bool Natural/even'
- true
- false
- true
- false
- true
$ docker run --interactive --rm dhallhaskell/dhall-yaml yaml-to-dhall '{ x : Natural, y : Bool }'
x: 1
y: true
<Ctrl-D>
{ x = 1, y = True }

Remember to mount any directories that contain files you need to import:

$ docker run --interactive --rm --volume /path/to/config/directory:/data dhallhaskell/dhall-yaml dhall-to-yaml-ng <<< '/data/example.dhall'

This image is a minimized image containing only the dhall-to-yaml-ng/yaml-to-dhall executables and their dependencies.

Tag summary

Content type

Image

Digest

sha256:abcc479e0…

Size

6.5 MB

Last updated

over 1 year ago

docker pull dhallhaskell/dhall-yaml