Unsure if it would be useful for anyone else, but I find myself wishing that dhall to-directory-tree supported file content other than Text. What are people's thoughts on rendering files using dhall-to-json? The biggest issue I foresee would be determining when to "terminate", i.e. when to stop treating records as directories and render them out as JSON instead.
Currently the only way to go about this is to use the JSON rendering in the Prelude, but that requires doing all the work to turn whatever are your terminal file contents into JSON/Type, which is tedious if you have any non-trivial structure.
Unsure if it would be useful for anyone else, but I find myself wishing that
dhall to-directory-treesupported file content other thanText. What are people's thoughts on rendering files usingdhall-to-json? The biggest issue I foresee would be determining when to "terminate", i.e. when to stop treating records as directories and render them out as JSON instead.Currently the only way to go about this is to use the JSON rendering in the Prelude, but that requires doing all the work to turn whatever are your terminal file contents into
JSON/Type, which is tedious if you have any non-trivial structure.