[Haskell-cafe] Documentation on hackage

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Jun 22 07:42:46 EDT 2009


On Mon, 2009-06-15 at 06:49 -0700, Don Stewart wrote:
> si:
> > Dear Haskellers,
> > 
> > who needs this kind of documentation?
> > 
> > http://hackage.haskell.org/packages/archive/tfp/0.2/doc/html/Types-Data-Num-Decimal-Literals.html
> > 
> > isn't this a kind of spam?
> > 
> 
> Seems like a good case for the haddock -hide option.

Note that this can be added to the module itself:

{-# OPTIONS_HADDOCK prune #-}

>From the user guide[1]:

prune
        
        Omit definitions that have no documentation annotations from the
        generated documentation.

hide 
        
        Omit this module from the generated documentation, but
        nevertheless propagate definitions and documentation from within
        this module to modules that re-export those definitions.
        

Duncan


[1] http://haskell.org/haddock/doc/html/module-attributes.html



More information about the Haskell-Cafe mailing list