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.

Newtypes Have Wrong Haddocks on GHC 8.10 #1366

Open
@emilypi

Description

@emilypi

Exporting something like newtype Foo = Foo { runFoo :: Int } explicitly, a la (Foo(..)) is presented as a data declaration, and does not expose runFoo to the user. For example:

Screen Shot 2021-03-23 at 3 48 00 PM

with the export CanT(runCanT) will be turned into this on GHC 8.10.x:

Screen Shot 2021-03-23 at 3 48 34 PM

And this on 8.8.x:

Screen Shot 2021-03-23 at 3 53 39 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions