[GHC] #12514: Can't write unboxed sum type constructors in prefix form

GHC ghc-devs at haskell.org
Tue Aug 23 20:34:17 UTC 2016


#12514: Can't write unboxed sum type constructors in prefix form
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
  (Parser)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

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

 In [changeset:"613d745523f181991f6f916bbe58082b7970f7e6/ghc"
 613d7455/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="613d745523f181991f6f916bbe58082b7970f7e6"
 Template Haskell support for unboxed sums

 This adds new constructors `UnboxedSumE`, `UnboxedSumT`, and
 `UnboxedSumP` to represent unboxed sums in Template Haskell.

 One thing you can't currently do is, e.g., `reify ''(#||#)`, since I
 don't believe unboxed sum type/data constructors can be written in
 prefix form.  I will look at fixing that as part of #12514.

 Fixes #12478.

 Test Plan: make test TEST=T12478_{1,2,3}

 Reviewers: osa1, goldfire, austin, bgamari

 Reviewed By: goldfire, bgamari

 Subscribers: thomie

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

 GHC Trac Issues: #12478
 }}}

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


More information about the ghc-tickets mailing list