I published my first Dhall package, dhall-webmanifest, for the W3 Web App Manifest file. I’d love to get some sort of feedback since I’m quite green here.
I think I did the { Type, default } thing for fallbacks correctly, but I wasn’t quite sure if I could remove all the Somes (or if I even should bother). There could be some more safety, but I don’t know that I would things to be complicated to do the to Text part. The part where this would help the most is in ExternalApplicationResource the spec says
A valid
ExternalApplicationResourcedictionary MUST haveplatformand either anurlor anid(or both).
which would lead me to believe there’s a These-like structure, but it’s probably more trouble to use/consume than it’s worth for that safety.