
#11763: Implement `-f(no-)version-macros` flag for controlling version macro generation -------------------------------------+------------------------------------- Reporter: hvr | Owner: Type: feature | Status: new request | Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: #10970 Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Since a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 / #10970 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11763 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler