Who defines __GLASGOW_HASKELL__, __HADDOCK__, etc?

17 Sep
2008
17 Sep
'08
7:30 p.m.
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? Context is http://trac.haskell.org/haddock/ticket/48 , ie, how to adapt sources that had to bypass or help along haddock1 for haddock2 (which should need fewer workarounds). Claus

18 Sep
18 Sep
8:51 a.m.
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.
6088
Age (days ago)
6089
Last active (days ago)
1 comments
2 participants
participants (2)
-
Claus Reinke
-
Ross Paterson