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

GHC ghc-devs at haskell.org
Tue Jan 30 14:50:01 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):

 Replying to [comment:10 mpickering]:
 > In general it looks like the code dealing with shadowing could do with
 some attention.

 I fully agree with you there. That being said, my sole motivation was to
 get normal record selectors and pattern synonym record selectors on equal
 footing, not to fix every issue with record selectors under the sun :)

 For the time being, at least, the most direct path forward would be
 finding the minimum API change that would be necessary to achieve the
 former goal.

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


More information about the ghc-tickets mailing list