dhall-lang / dhall-to-cabal

Compile Dhall expressions to Cabal files
MIT License
100 stars 19 forks source link

cabal-to-dhall: keep the generated imports from GitHub up to date #66

Closed quasicomputational closed 6 years ago

quasicomputational commented 6 years ago

This will grab the current version number from Paths_dhall_to_cabal and then generate the URL to import from from that.

As a knock-on change, to prevent the tests breaking every time the version is bumped, we now omit the imports altogether from cabal-to-dhall's tests.

quasicomputational commented 6 years ago

I slept on it and decided that parameterising cabalToDhall made the most sense, so that's what version 2 of this PR does.

quasicomputational commented 6 years ago

Huh. Dunno what's up with the tests failing on hydra; it works for me locally, though I'm not running them with nix.

quasicomputational commented 6 years ago

Problem was on my end; I was building against dhall's HEAD while I chased down that performance issue.

ocharles commented 6 years ago

Yep, this works great. Thanks!