[GHC] #14630: name shadowing warnings by record pattern synonyms + RecordWildCards or NamedFieldPuns

GHC ghc-devs at haskell.org
Tue Jan 30 14:27:24 UTC 2018


#14630: name shadowing warnings by record pattern synonyms + RecordWildCards or
NamedFieldPuns
-------------------------------------+-------------------------------------
        Reporter:  mizunashi_mana    |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11228, #11970    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 mpickering, my patch is located here:
 https://github.com/RyanGlScott/ghc/commit/e1262b33092e8b3e2d8bfed588334d14aaed7041
 . The main highlights are that it adds a new constructor to `AvailInfo`
 and `Parent` corresponding to pattern synonym record fields. As I
 discovered, this is remarkably close to what the state of affairs was
 pre-#11970 (although back then the information tracked whether a name was
 a pattern synonym, not necessarily a pattern synonym record field, so
 perhaps I'm comparing apples to oranges).

 I'd certainly be open to a simpler approach, although it's not entirely
 clear to me at the moment what that would be.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14630#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list