[GHC] #12729: Unlifted newtypes via GADTSyntax

GHC ghc-devs at haskell.org
Wed Oct 19 11:24:04 UTC 2016


#12729: Unlifted newtypes via GADTSyntax
-------------------------------------+-------------------------------------
        Reporter:  monoidal          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"1f09c16c38a2112322d8eab95cd1269daaf5a818/ghc" 1f09c16/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1f09c16c38a2112322d8eab95cd1269daaf5a818"
 Test for newtype with unboxed argument

 Newtypes cannot (currently) have an unboxed argument type.
 But Trac #12729 showed that this was only being checked for
 newtypes in H98 syntax; in GADT snytax they were let through.

 This patch moves the test to checkValidDataCon, where it properly
 belongs.
 }}}

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


More information about the ghc-tickets mailing list