Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A rendering issue of destructurs #1491

Open
coot opened this issue May 25, 2022 · 2 comments
Open

A rendering issue of destructurs #1491

coot opened this issue May 25, 2022 · 2 comments

Comments

@coot
Copy link
Collaborator

coot commented May 25, 2022

Current haddock head of ghc-9.2 branch (041385b) renders toLazyTMVar defined by:

newtype StrictTMVar m a = StrictTMVar { toLazyTMVar :: LazyTMVar m a }

as

<a id="v:-36-sel:toLazyTMVar:StrictTMVar" class="def">$sel:toLazyTMVar:StrictTMVar</a>

certainly the inner part of the link should just be toLazyTMVar

@Kleidukos
Copy link
Member

The $sel is absolutely an abstraction leak, it's a sign that the code that the compiler had a record selector disambiguation extension activated.

@coot
Copy link
Collaborator Author

coot commented May 26, 2022

You're right it has DuplicateRecordFields turned on which implies DisambiguateRecordFields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants