[Haddock] Qualification of non-hyperlinked identifiers

Tobias Brandt tob.brandt at googlemail.com
Sat Nov 20 10:23:45 EST 2010

Hi David,

On 20 November 2010 15:34, David Waern <david.waern at gmail.com> wrote:
> I was reading the code for the 'ppDocName' function and noticed that
> you don't apply your qualification logic to 'Undocumented' names. Is
> there a reason for this? Undocumented names are just names that
> Haddock didn't find in the .haddock files it searches and thus won't
> generate a hyperlink for. They are still shown however and I guess it
> would be more consistent to qualify them as well?

Yes, it would. The problem is that the 'qualifyName' function needs
the module to create the qualified name. But the 'Undocumented'
takes only a name, not a module. One would have to change the 'DocName'
type to always carry the module.

More information about the Haddock mailing list