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 and GHC environment file related errors #527

Open
noughtmare opened this issue Aug 12, 2022 · 2 comments
Open

Cabal and GHC environment file related errors #527

noughtmare opened this issue Aug 12, 2022 · 2 comments

Comments

@noughtmare
Copy link

Inspired by this stackoverflow question.

When running commands such as cabal install --lib bytestring the result may depend on what is already in the default environment file. However, cabal will not really tell you that. It only says things like:

bytestring-0.10.12.1 (constraint from user target requires ==0.10.12.0)

And

bytestring-0.10.12.0 (constraint from user target requires ==0.11.3.1)

I think it would be good to show exactly where these constraints come from, e.g. with file names and line numbers.

Also I think it would be useful to have a general warning/info message about which environment files are used.

@goldfirere
Copy link
Contributor

Would it make sense to post this suggestion to cabal directly? The word on the street is that the maintainers are eager for these kinds of suggestions. This repo here is good if there is some wiggle room on the best phrasing of the message, but that doesn't quite seem to be the case here.

@noughtmare
Copy link
Author

That makes sense, I've opened haskell/cabal#8540.

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

2 participants