haddock icon indicating copy to clipboard operation
haddock copied to clipboard

A rendering issue of destructurs

Open coot opened this issue 3 years ago • 2 comments

Current haddock head of ghc-9.2 branch (041385bc43f0b99d26077787eb8ed9e394766438) 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

coot avatar May 25 '22 18:05 coot

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

Kleidukos avatar May 25 '22 18:05 Kleidukos

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

coot avatar May 26 '22 10:05 coot