-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add custom-setup stanza #274
Conversation
The Setup.lhs file is incompatible with newer versions of the Cabal library. This change adds the appropriate custom-setup stanza to indicate compatibility with Cabal 1.24.
Unfortunately this change made sure that the .cabal file is now ill-specified and so will guarantee to fail to build (except maybe for tooling which doesn't implement the |
How would it be broken? I just built the project with this commit with |
@parsonsmatt These changes concern the I've opened #275 to fix new-build for that project. |
I'd also suggest filing a bug against Stack, as it appears that even though the |
I'll happily raise an issue on |
@parsonsmatt Cabal's package description design is driven by the "no untracked dependencies" mantra, i.e. the .cabal package description is supposed to specify the build environment (i.e. dependencies) as accurately as possible. See https://www.well-typed.com/blog/2015/07/cabal-setup-deps/ for more details about this. In the case of |
Eta was a project which relied on a very similar Stack bug. Sucks. |
Oh, interesting! Should I file a bug on cabal's repo since it worked also, or is it fixed in newer versions? |
@parsonsmatt If you can reproduce this with |
Oh, I was looking at the wrong cabal file the entire time 😱 The |
@parsonsmatt I'm confused now... are you saying that snoyberg screwed up by not having even tested his PR before submitting? |
@gwisl What is the correct fix from here? |
@tonymorris Rewrite/simplify the Setup.lhs file. I've just opened #280 to discuss. |
The Setup.lhs file is incompatible with newer versions of the Cabal
library. This change adds the appropriate custom-setup stanza to
indicate compatibility with Cabal 1.24.