[GHC] #11228: Interaction between ORF and record pattern synonyms needs to be resolved.

GHC ghc-devs at haskell.org
Tue Dec 29 13:12:37 UTC 2015


#11228: Interaction between ORF and record pattern synonyms needs to be resolved.
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms, orf
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9975, #11283     |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"4f69203dd7892d3640e871c5914b7ee2be5f5dff/ghc"
 4f69203d/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4f69203dd7892d3640e871c5914b7ee2be5f5dff"
 Fix panic when using pattern synonyms with DisambiguateRecordFields

 This fixes a `find_tycon` panic when constructing a record pattern
 synonym when `DisambiguateRecordFields` (turned on by `RecordWildCards`)
 is enabled.  The handling of record wild cards in such constructions
 isn't completely satisfactory, but doing better will require the
 `Parent` type to be more informative, as I'll explain on #11228.

 Test Plan: New test patsyn/should_compile/T11283.hs

 Reviewers: mpickering, austin, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1695

 GHC Trac Issues: #11283
 }}}

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


More information about the ghc-tickets mailing list