Auto complete in ghci shows $sel:function:Type for DuplicateRecordFields fields
Given a haskell file;
{-# LANGUAGE DuplicateRecordFields #-}
-- t.hs
data A = A { name :: String }
data B = B { name :: String }
and in GHCi;
ghci t.hs
GHCi, version 8.1.20151231: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Main ( tnum.hs, interpreted )
Ok, modules loaded: Main.
*Main> <TAB> <TAB>
...
$sel:name:A
$sel:name:B
...
The records show up as $sel:function:Type, a function which you cannot refer to by name.
Even if you enable OverloadedLabels, the #labels don't show up in the auto completion.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1-rc1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |