Who defines __GLASGOW_HASKELL__, __HADDOCK__, etc?

Ross Paterson ross at soi.city.ac.uk
Thu Sep 18 08:51:19 EDT 2008


On Thu, Sep 18, 2008 at 12:30:42AM +0100, Claus Reinke wrote:
> So far, I had assumed that every tool defined its own macro,
> but it seems that __GLASGOW_HASKELL__ is defined by
> ghc and by cabal, while __HADDOCK__ is defined only by
> the latter. Is that right?

Yes, Cabal defines __HADDOCK__ only for haddock1.
haddock2 is supposed to be compatible with GHC.



More information about the cabal-devel mailing list