Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Haddock does not document exported fields of partially-exported records. #456

@BartMassey

Description

@BartMassey

In System.Console.ParseArgs, I had in my module exports the line

    Args(argsUsage, argsProgName, argsRest),

which hides the export of the record constructor args. Unfortunately, Haddock fails to document the other exported constructors of the record (even their existence), making them essentially invisible to users. This is bad, because these constructors are necessary for many ParseArgs use cases.

I could probably work around this with some bletcherous module import chicanery, but I don't think it would be a good idea. Instead, I've got something gross in there for now that just renames args to __args and exports the whole record. I suppose I could play games with a typeclass, but bleah.

This issue was first reported seven years ago in http://trac.haskell.org/haddock/ticket/3, and was last updated 20 months ago. I don't understand Haddock well enough to offer a patch.

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