Implement `-f(no-)version-macros` flag for controlling version macro generation
Since a9c93bdd / #10970 (closed) GHC is able to generate MIN_VERSION_...
and VERSION_...
natively without Cabal's help.
Currently, this feature is currently triggered by -hide-all-packages
. However, additionally, it seems reasonable to be able to control this more explicitly. E.g. either to be able to explicitly disable even if -hide-all-packages
implicitly enabled the macros, as well as be able to explicitly request macro generation for currently visible packages even without any -hide-all-package
/-package
flags.
Trac metadata
Trac field | Value |
---|---|
Version | 7.11 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | highest |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | bgamari, ezyang |
Operating system | |
Architecture |