This image lets you run the dhall-to-bash executable built from the dhall-bash Haskell package:
$ docker run --interactive --rm dhallhaskell/dhall-bash dhall-to-bash --declare FOO <<< '{ x = 1, y = True }'
declare -r -A FOO=([x]=1 [y]=true)
$ docker run --interactive --rm dhallhaskell/dhall-bash dhall-to-bash --declare BAR <<< 'https://prelude.dhall-lang.org/List/generate 5 Bool Natural/even'
declare -r -a BAR=(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-bash dhall-to-bash <<< '/data/example.dhall'
This image is a minimized image containing only the dhall-to-bash executable and its dependencies.
Content type
Image
Digest
sha256:7f2beae9b…
Size
3.1 MB
Last updated
over 1 year ago
docker pull dhallhaskell/dhall-bash