3 ms·
is there a single example Dhall config file anywhere that has more than a couple feature examples? It's a lot easier to grok new stuff like this if there's just
by jdc0589 8y ago
is there a single example Dhall config file anywhere that has more than a couple feature examples? It's a lot easier to grok new stuff like this if there's just one big example to look at to get an idea of what it does rather than having to navigate tons of granular documentation (which is also great, though)
- KirinDave 8y agoDhall has a cheatsheet that might help you get a handle on its full feature set: https://github.com/dhall-lang/dhall-lang/wiki/Cheatsheet https://github.com/dhall-lang/dhall-lang/wiki/Cheatsheet
- stingraycharles 8y agoHmm I agree with OP though, and this cheatsheet still isn’t it for me. I need to see a real world example to be able to fully grok its practical use. Do you happen to know of any?
- vmchale 8y agoHere's an example from one of my projects: https://github.com/vmchale/polyglot/blob/master/atspkg.dhall https://github.com/vmchale/polyglot/blob/master/atspkg.dhall
- Gabriel439 8y agoAuthor here: I opened an issue to track this request and remind myself to do this: https://github.com/dhall-lang/dhall-lang/issues/189 https://github.com/dhall-lang/dhall-lang/issues/189
- dwohnitmok 8y agoSince the author's already responded, this might be redundant, but perhaps expanding the example at https://github.com/dhall-lang/dhall-lang#case-study https://github.com/dhall-lang/dhall-lang#case-study might be a helpful look at a running example of Dhall. I feel like I've seen multiple people completely skip over and not realize there was already an example in the README as opposed to just the detailed reference docs. Perhaps you're looking for something with even more features and applicability (e.g. an example of a Kubernetes config as Dhall's author points out), but hopefully that example gives at least a self-contained example of how to gradually start using Dhall.
- jdc0589 8y agooh wow, I totally missed that since it was minimized and I was skimming. thanks!