Ticket #62 (closed defect: fixed)
Haddock forgets that modules are hidden
| Reported by: | igloo | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 2.2.1 | Keywords: | PhbLxgJt |
| Cc: | BAzYBhtdCScjNnkj |
Description
With src/A.hs:
{-# OPTIONS_HADDOCK hide #-}
module A where
a = 'a'
and src/B.hs:
module B where import A b = 'b'
and the haddock in GHC's HEAD I get:
$ cd src $ haddock --html A.hs B.hs -D foo.haddock $ grep A.html index.html $ grep B.html index.html ><A HREF="B.html" $ cd .. $ haddock --gen-index --gen-contents -o . --read-interface=foo,src/foo.haddock $ grep A.html index.html ><A HREF="foo/A.html" $ grep B.html index.html ><A HREF="foo/B.html" $
i.e. when we tell haddock to generate contents and index pages it doesn't know that some modules should be hidden. This is bad, because A.html doesn't exist.
Change History
Note: See
TracTickets for help on using
tickets.
