bgamari / dhall-gitlab-ci

A Dhall encoding of the GitLab CI configuration schema
BSD 3-Clause "New" or "Revised" License
46 stars 19 forks source link

Use the package.dhall convention #1

Closed mx00s closed 4 years ago

mx00s commented 4 years ago

Unlike Text, Dhall's URL imports do not support any kind of interpolation. Consequently, updating expressions like this to use more recent revisions is awkward. I'd have to edit the git revision in multiple URL imports.

Several Dhall projects use a package.dhall file so users can make a let binding to its URL and access all the project's public features through it. Here is the package.dhall for dhall-kubernetes.

Potential Alternatives?

I considered whether other Dhall features could simplify maintenance in my project without asking for a package.dhall here, but haven't found any. These issues and comments in dhall-lang offer some useful context.

The comment following that last one about expanding the type hierarchy might be relevant to this concern, but I don't see it yet.

bgamari commented 4 years ago

I would happily accept a pull request.