[GHC] #11328: Auto complete in ghci shows $sel:function:Type for DuplicateRecordFields fields
GHC
ghc-devs at haskell.org
Sat Jan 30 21:13:59 UTC 2016
#11328: Auto complete in ghci shows $sel:function:Type for DuplicateRecordFields
fields
-------------------------------------+-------------------------------------
Reporter: kolmodin | Owner: adamgundry
Type: bug | Status: patch
Priority: normal | Milestone: 8.0.1
Component: GHCi | Version: 8.0.1-rc1
Resolution: | Keywords:
| DuplicateRecordFields, ORF
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
| ghci/should_run/T11328
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1870
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by adamgundry):
* testcase: => ghci/should_run/T11328
* status: new => patch
* differential: => Phab:D1870
* component: Compiler => GHCi
* milestone: 8.2.1 => 8.0.1
Comment:
Fortunately this one was an easy fix. I noticed that generated names (e.g.
beginning with `$tc` or `$tr`) were turning up in the autocomplete after
defining datatypes interactively, so I fixed that too. It's a tiny patch,
so maybe worth backporting to 8.0.1? But the bug is fairly obscure, so not
a disaster if that's too much trouble.
> Even if you enable `OverloadedLabels`, the `#labels` don't show up in
the auto completion.
I've not changed this; I think it's the correct behaviour. A `#label` is
not an identifier, it's a separate syntactic form, and there's no obvious
basis for auto-completing it.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11328#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list