[Haskell-cafe] Conditional code for Haddock

Sean Leather leather at cs.uu.nl
Wed Jan 20 06:57:34 EST 2010


> Doesn't haddock define __HADDOCK__ by itself?
>
> I would've thought
>
> import qualified Data.ByteString as Bs
>    ( ByteString
>    , length
> #ifdef __HADDOCK__
>    , empty
> #endif
>    )
>
> should work.
>

I did some conditional Haddocking in EMGM. See, for example:


http://hackage.haskell.org/packages/archive/emgm/0.3.1/doc/html/src/Generics-EMGM-Data-Bool.html

Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100120/915765ee/attachment.html


More information about the Haskell-Cafe mailing list