cabalism / hpack-dhall

Use hpack's phrasing in dhall to write cabal files
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Add a prelude #37

Open philderbeast opened 3 years ago

philderbeast commented 3 years ago

Spurred on by the pull request https://github.com/cabalism/hpack-dhall/pull/33 to add a prelude.

We use the hpack dialect but for cabal there's already a prelude with dhall-to-cabal.

cc @locallycompact.

locallycompact commented 3 years ago

I have no super strong opinions at the minute, perhaps it may make sense to pull in types from dhall-to-cabal via the hashes, and // together with anything we can do better with hpack, I'm interested to see how they're making use of version range operations to accomplish something useful. I don't really know what the rest of the prelude is about though.

I still quite like the union approach to list elements so that they are all checked for misspellings, but I think we can lose some of the boilerplate.

What do you think?