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 CURRENT_PACKAGE_VERSION or similar to cabal-macros.h #4319

slpopejoy opened this Issue Feb 13, 2017 · 1 comment


None yet
2 participants
Copy link

slpopejoy commented Feb 13, 2017

Given that cabal-macros.h defines VERSION_[pkg] for every dep, it seems strange that we can't access something as simple as the current package version, unless of course I'm missing something.

I assume this would be a very easy and non-breaking change, and am happy to provide a PR. However there may be dragons, or it may already exist, so asking first!


This comment has been minimized.

Copy link

ezyang commented Feb 13, 2017

I don't see why not. Note that macros does define CURRENT_COMPONENT_ID which is usually derived off the of the version, but you're supposed to treat the string opaquely so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment