[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] Conditional code for Haddock

Subject: Re: [Haskell-cafe] Conditional code for Haddock
From: Sean Leather
Date: Wed, 20 Jan 2010 12:57:34 +0100
 
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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>