Sign inSign up

dhallhaskell/dhall-json

By dhallhaskell

•Updated over 1 year ago

Convert between Dhall and JSON or YAML

Image
0

100K+

dhallhaskell/dhall-json repository overview

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

  • dhall-to-json
  • dhall-to-yaml
  • json-to-dhall
$ docker run --interactive --rm dhallhaskell/dhall-json dhall-to-json <<< '{ x = 1, y = True }'
{"x":1,"y":true}
$ docker run --interactive --rm dhallhaskell/dhall-json dhall-to-yaml <<< 'https://prelude.dhall-lang.org/List/generate 5 Bool Natural/even'
- true
- false
- true
- false
- 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-json dhall-to-json <<< '/data/example.dhall'

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

Tag summary

Content type

Image

Digest

sha256:f67ec7936…

Size

9.3 MB

Last updated

over 1 year ago

docker pull dhallhaskell/dhall-json