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

Cabal version mismatch when using a custom Setup.hs #9

Open
kokobd opened this issue Aug 23, 2022 · 0 comments
Open

Cabal version mismatch when using a custom Setup.hs #9

kokobd opened this issue Aug 23, 2022 · 0 comments

Comments

@kokobd
Copy link
Owner

kokobd commented Aug 23, 2022

Currently, cabal-hoogle reads setup-config file produced by Cabal library. That file is not backward compatible.
This can only be solved properly when Cabal supports --enable-build-info, see this upstream issue.
As a workaround, you may add a constraints section to your cabal.project.local, so that your Setup.hs uses the same Cabal as cabal-hoogle, like below:

constraints:
   Cabal == 3.6.2.0 -- change this to the Cabal version you used to build `cabal-hoogle`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant