-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__HADDOCK__ CPP macro isn't defined #1237
Comments
Also related: #926. Perhaps it's better to just always define |
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
I did a bit of archaeology. The commits that change the situation described in #231 are cef898e and afc1603 by @Saizan. He doesn't seem to explain, however, why these changes were made. So, unless someone can remember the rationale behind them, I'd be happy to see your patch applied. (Essentially it reverts afc1603.) Also, the module header has to be updated. It says:
|
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
Updated, thanks. |
Actually, we should probably drop support for Haddock < 2 and just pass --optghc=-cpp to Haddock if the package has the |
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
This is useful e.g. for "writing documentation that links to module A without explicitly qualifying everything, where A is not directly imported." (see the discussion in haskell#926) Fixes haskell#1237.
I noticed that
__HADDOCK__
CPP macro doesn't get set during the haddock phase.From looking at
prepareSources
(Cabal/Distribution/Simple/Haddock.hs
), it seems that preprocessing happens regardless of the Haddock version, but-D__HADDOCK__
is passed only for haddock 0.x.Possibly related old issue: #231
The text was updated successfully, but these errors were encountered: