We use Dhall text templates in project-dhall/ghc-x.y.z/text-templates
:
- From template
dhall2cabal.dhall
, we generateghc-x.y.z.dhall2cabal.project
- From template
dhall2stack.dhall
, we generateghc-x.y.z.dhall2stack.yaml
Dhall text templating was announced in June 2017 and this is now a command of the dhall executable:
$ dhall text --help`
Usage: dhall text [--file FILE] [--output FILE]
Render a Dhall expression that evaluates to a Text literal
Available options:
--file FILE Read expression from a file instead of standard input
--output FILE Write result to a file instead of standard output
-h,--help Show this help text