Skip to content
  • Adam Gundry's avatar
    Avoid mangled/derived names in GHCi autocomplete (fixes #11328) · dd0b7c78
    Adam Gundry authored and Ben Gamari's avatar Ben Gamari committed
    This changes `getRdrNamesInScope` to use field labels rather than
    selector names for fields from modules with `DuplicateRecordFields`
    enabled. Moreover, it filters out derived names (e.g. type
    representation bindings) that shouldn't show up in autocomplete.
    
    Test Plan: New test ghci/should_run/T11328
    
    Reviewers: kolmodin, austin, bgamari, simonpj
    
    Reviewed By: bgamari, simonpj
    
    Subscribers: simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1870
    
    GHC Trac Issues: #11328
    dd0b7c78