When docutils is used to generate the diagrams user manual, it automatically creates a link from every mention of a function exported by diagrams to its documentation. However, sometimes (but not all the time?) the link goes to Diagrams.Prelude (which re-exports everything) instead of the module where the function is defined. In some sense this is even worse than having no link at all.
A way to specify a special-case exception would be one way to solve it, but even better would be to solve it more fundamentally -- to figure out how to make sure a link goes to the module in which an identifier is defined, rather than some arbitrarily determined module from which it is exported.
When
docutilsis used to generate the diagrams user manual, it automatically creates a link from every mention of a function exported by diagrams to its documentation. However, sometimes (but not all the time?) the link goes toDiagrams.Prelude(which re-exports everything) instead of the module where the function is defined. In some sense this is even worse than having no link at all.A way to specify a special-case exception would be one way to solve it, but even better would be to solve it more fundamentally -- to figure out how to make sure a link goes to the module in which an identifier is defined, rather than some arbitrarily determined module from which it is exported.