Skip to content

Haddock 0.8 does not appear to respect module structure

Haddock seems to ignore the explicit import lists or hiding lists of imports. So if you have

module MyModule
(module MyOtherModule
) where

import MyOtherModule hiding (foo)

or

module MyModule
(module MyOtherModule
) where

import MyOtherModule(foo)

Everything exported by MyOtherModule is documented in the Haddock for MyModule whether of not it's available. The resulting Haddock is therefore quite incorrect and misleading.

Yes, I know this isn't a ghc bug, but there seems to be nowhere else to report this. So please can we have it fixed, not just closed and forgotten about :-)

Trac metadata
Trac field Value
Version 6.8
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component None
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information