-
Notifications
You must be signed in to change notification settings - Fork 696
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
Set CABAL_VERSION
environment variable when calling out to executables
#3050
Comments
I'm fine with this. |
We may want to pass something like this as CPP macro as well... i.e. |
Why isn't the |
|
@23Skidoo what ezyang said, and maybe https://phabricator.haskell.org/D1869 provides a bit more context; it maybe useful for code to know when it's being built via Cabal, as then e.g. things like a |
@hvr do you want this milestoned for 2.0? Would you like to write the patch :) |
I couldn't figure out if there is already something like this in place, but I think it may be useful to have this kind of information available to programs called by the Cabal library. Or rather, I see no downside to provide this information, even if programs don't need it yet. OTOH, changes like https://phabricator.haskell.org/D1780 do occur from time to time. And Cabal has no way to know about future GHC versions, however, GHC can know about past (incompatible) Cabal versions.
With such an environment variable
ghc-pkg
orghc
could optionally inspect theCABAL_VERSION
environment variable, and warn (or adapt their behaviour) if the Cabal library version is known to be unaware of recent changes in GHC's behaviour./cc @ezyang
UPDATE: #415 is somewhat related
The text was updated successfully, but these errors were encountered: