Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out story for Custom setup scripts #22

Open
judah opened this issue Nov 5, 2017 · 2 comments
Open

Figure out story for Custom setup scripts #22

judah opened this issue Nov 5, 2017 · 2 comments

Comments

@judah
Copy link
Owner

judah commented Nov 5, 2017

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:

  • happy, alex: generate template data-files by compiling and running a program with different CPP flags.
  • pandoc: installs man page
  • semigroupoids, comonad, distributive: use cabal-doctest
  • lens: uses cabal-doctest, and also installs an image to be used by the haddocks
  • entropy: runs a test C program, not sure for what purpose
  • darcs: generates a custom Version.hs module for embedding more specific version information; also custom logic for linking against libiconv, similar to what used to be in haskeline
  • gtk2hs: packages like glib use gtk2hs-buildtools:Gtk2HsSetup
@judah judah added the Epic label Nov 5, 2017
@judah judah added this to the Launch milestone Nov 5, 2017
@judah judah changed the title Figure out story for custom autogen modules Figure out story for Custom setup scripts Dec 26, 2017
@judah judah removed this from the Launch milestone Feb 3, 2018
@chreekat
Copy link

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
Copy link

bergey commented Sep 30, 2020

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

ekmett/gl@dba7d55
haskell/happy@f2bef50
jgm/pandoc@e8fba10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants