[Haskell-cafe] Problem with haddock importing definition

Ross Paterson ross at soi.city.ac.uk
Wed May 20 03:50:16 EDT 2009

On Wed, May 20, 2009 at 09:42:19AM +0200, David Waern wrote:
> 2009/5/15 Maurício <briqueabraque at yahoo.com>:
> > I have a situation like this: module A imports R (a newtype
> > declaration) from module B, and lists it in its (module A)
> > export list.
> >
> > Documentation for R is included by haddock in documentation
> > for module A, as I want. However, if my package exposes only
> > module A, documentation for R desapears.
> When you say documentation disappears, do you mean that R is still
> listed, but its comments are not shown, or is R completely absent from
> the documentation?

See http://trac.haskell.org/haddock/ticket/107

He just needs to include B in the other-modules list, so that cabal will
pass it to haddock (and setup sdist).

More information about the Haskell-Cafe mailing list