Hi,
Just discovered Dhall the other week and got really exited, especially about the “One config to rule them all” part
Have tried reading up on the tutorial and getting started sections on the Dhall site but have no previous experience in functional programming so I suspect that is the major cause of my struggles.
I was planning to do a hackday project to get a boiler plate for defining the services and the global environment for the company I work for, but I get stuck on the local file imports and not finding the right answers to my questions in the documentation.
First question is if it is at all possible to import Dhall files that are normalized and which does not contain any functions or logic?
I started out with a file structure where all Dhall files are in the same directory and with one file called environments.dhall, one called services.dhall and then two files called service-1.dhall and service-2.dhall.
Optimally I would like the files defining our environment and each service to just contain normalized Dhall so they are easy for everyone to keep updated but still being able to import for example environments.dhall to service-1.dhall to substitute things like domain names, proxies and other stuff that are global to all services and which would be awesome to just have defined in one place.
In services.dhall my though was that it would only contain imports of all service-1, 2 etc files and get a few variables from each file to be able to list the names and endpoints of all existing services.
Not sure if I am targeting this problem the completely wrong way but any help would be appreciated.
Cheers,
//Jon