[GHC] #12407: Template Haskell thinks an unboxed tuple name is illegal to splice in

GHC ghc-devs at haskell.org
Mon Jul 18 17:52:35 UTC 2016


#12407: Template Haskell thinks an unboxed tuple name is illegal to splice in
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.2
       Component:  Template Haskell  |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2410
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ryan Scott <ryan.gl.scott@…>):

 In [changeset:"1fc41d3274b5bf62f027aa6c7df57998db494938/ghc"
 1fc41d32/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1fc41d3274b5bf62f027aa6c7df57998db494938"
 Make okConIdOcc recognize unboxed tuples

 Summary:
 `okConIdOcc`, which validates that a type or constructor name is valid
 for splicing using Template Haskell, has a special case for tuples, but
 neglects to look for unboxed tuples, causing some sensible Template
 Haskell
 code involving unboxed tuples to be rejected.

 Fixes #12407.

 Test Plan: make test TEST=T12407

 Reviewers: austin, bgamari, hvr, goldfire

 Reviewed By: goldfire

 Subscribers: thomie

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

 GHC Trac Issues: #12407
 }}}

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


More information about the ghc-tickets mailing list