Ticket #107 (closed defect: invalid)

Opened 6 years ago

Last modified 2 years ago

Haddock do not generate doc for reexported name

Reported by: M Owned by:
Priority: major Milestone:
Version: 2.4.2 Keywords:
Cc:

Description

I'm attaching an example of what I think is an error. It has ModuleA and ModuleB. ModuleB is supposed to be hidden. ModuleA imports ModuleB and reexports a ModuleB documented name. There's also a .cabal file, and I generate documentation using 'runhaskell Setup.hs haddock'. If .cabal says ModuleA and ModuleB are to be exposed, I have no problems, and ModuleA documentation shows correct documentation for reexported ModuleB name. But if I remove ModuleB from .cabal list of exposed modules, documentation for ModuleA do not show documentation for reexported ModuleB name.

Why hidding ModuleB affects ModuleA documentation?

Attachments

single.dpatch (1.1 kB) - added by M 6 years ago.
A darcs bundle with the example.

Change History

Changed 6 years ago by M

A darcs bundle with the example.

Changed 6 years ago by ross

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

This isn't a Cabal or Haddock bug. You need to add

    other-modules: ModuleB

to the .cabal file.

Changed 2 years ago by anonymous

  • milestone 2.5.0 deleted

Milestone 2.5.0 deleted

Note: See TracTickets for help on using tickets.