#10520: RecordWildCards causes “is not a (visible) field of constructor” in ghci -------------------------------------+------------------------------------- Reporter: ion1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: GHCi | Version: 7.10.1 Resolution: fixed | Keywords: | RecordWildCards Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"cd85dc84b36bc5f600eb1b3805024a5b2443e1a3/ghc" cd85dc84/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="cd85dc84b36bc5f600eb1b3805024a5b2443e1a3" Make sure record pattern synonym selectors are in scope in GHCi. Beforehand, when a record pattern synonym was defined in GHCi the selectors would not be in scope. This is because of `is_sub_bndr` in `HscTypes.icExtendGblRdrEnv` was throwing away the selectors. This was broken by the fix to #10520 but it is easy to resolve. Reviewers: austin, bgamari, simonpj Reviewed By: simonpj Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2147 GHC Trac Issues: #11985 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10520#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler