pre-710 compatibility stuff

Herbert Valerio Riedel hvriedel at gmail.com
Sat Oct 24 15:00:41 UTC 2015


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.h

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


More information about the cabal-devel mailing list