Skip to content

How to deal with "conflicts" between qualified types in documentation? #67

@jvoigtlaender

Description

@jvoigtlaender

Let's say there are two modules A and B, both exporting a type T, and a third module C importing the two, and defining a function like so:

module C where
import qualfied A
import qualified B

f : A.T -> B.T

The documentation for module C will show:

f : T -> T

Little chance for readers of the documentation to find out what is going on here.

Possible solution (without resorting to always showing all qualifiers): When showing documentation for a module, collect all type names that occur in its signatures, compare them to find out which names occur in at least two different qualified forms, then always print those with qualifiers (but all other type names without qualifiers).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions