
24 Oct
2015
24 Oct
'15
3 p.m.
On 2015-10-24 at 15:05:44 +0200, Thomas Tuegel wrote: [...]
MIN_VERSION_base is defined by Cabal, so it is not available during bootstrapping.
yes, and that's why we have a cabal_macros_boot.h in GHC's build-system for bootstrapping purposes, http://git.haskell.org/ghc.git/blob/HEAD:/utils/ghc-cabal/cabal_macros_boot.... Moreover, Edward has a patch for GHC to have native MIN_VERSION_... support in GHC: https://ghc.haskell.org/trac/ghc/ticket/10970 https://phabricator.haskell.org/D1349
This means we unfortunately need to use __GLASGOW_HASKELL__ in Cabal, even though it isn't really the right macro. It should be safe to use MIN_VERSION_base in cabal-install.
Cheers, hvr