On Tue, Feb 01, 2005 at 11:02:45AM -0000, Simon Marlow wrote:
> I'm making some changes to the way Haddock creates links, and I'd like
> to solicit comments on possible alternatives.
> 
> The existing approach is for each non-locally-defined identifier in the
> current module, we hyperlink to a module that it was imported from, and
> that (a) actually documents the identifer, and (b) isn't hidden.
> 
> [...]
> 
> So the new approach is to try to build up a global table of the "best"
> destinations to link to for each entity.  The question is how to
> determine "best".  Here's my first stab:
> 
>   - A is better than B if A directly or indirectly imports B

Perhaps it should be the other way round: the lowest non-hidden module
that exports the name (if more than one such, fix on one).  This would
need most of GHC.* hidden, which is desirable anyway.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to