judah / pier

Yet another Haskell build system.
115 stars 8 forks source link

Figure out story for Custom setup scripts #22

Open judah opened 6 years ago

judah commented 6 years ago

How should we support packages like proto-lens or gl that generate Haskell modules with a custom Setup file? Allow custom user rules? Actually just run their Setup script?

Some specific packages:

chreekat commented 5 years ago

Actually just run their Setup script?

Isn't that basically the only option? Since shake is designed to pick up new dependencies as it goes, is there a way to inspect the results of running Setup, add them to the mix, and carry on?

bergey commented 4 years ago

Several of these no longer use a custom Setup.hs. The 3 I checked:

https://github.com/ekmett/gl/commit/dba7d55f35e335bbd535fb93274a39ccd5fc03cc https://github.com/simonmar/happy/commit/f2bef509441b63bed05c05759f463adf18e4f758 https://github.com/jgm/pandoc/commit/e8fba105a5e0d63b5fdbc7505d657eda13a52b59