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

Have Cabal build a Setup executable and test with it. #3260

Closed
wants to merge 1 commit into from

Commits on Mar 31, 2016

  1. Have Cabal build a Setup executable and test with it.

    I recently discovered that build-tools can be used to specify
    dependencies on internal executables (haskell#220).  This means that
    we can make a nice improvement to the package-tests test suite:
    instead of manually building a Setup.hs script ourselves,
    we can add one to the Cabal file for Cabal, and have the
    test suite have a build-tools dependency on it.
    
    Perhaps the only objection to this is that the Cabal *library*
    now has an executable cabal-setup.  Maybe with some buildable
    shenanigans we can make it so that we never build this executable
    unless the user asks for it, or the test suite is enabled.
    Alternately, cabal-setup is a generally handy executable to have
    around.
    
    Signed-off-by: Edward Z. Yang <[email protected]>
    ezyang committed Mar 31, 2016
    Configuration menu
    Copy the full SHA
    5db1dc0 View commit details
    Browse the repository at this point in the history