Ticket #62 (closed defect: fixed)

Opened 9 years ago

Last modified 5 years ago

Haddock forgets that modules are hidden

Reported by: igloo Owned by:
Priority: major Milestone:
Version: 2.2.1 Keywords: PhbLxgJt
Cc: BAzYBhtdCScjNnkj


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

Changed 9 years ago by anonymous

Changed 9 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

Changed 9 years ago by waamkskqmxl

  • cc BAzYBhtdCScjNnkj added
  • keywords PhbLxgJt added
  • version set to 2.2.1
  • milestone set to 2.2.0

Changed 5 years ago by anonymous

  • milestone 2.2.0 deleted

Milestone 2.2.0 deleted

Note: See TracTickets for help on using tickets.