#8306: NegativeLiterals allows negative type-level integers
-------------------------------------+-------------------------------------
        Reporter:  monoidal          |            Owner:  thoughtpolice
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  GHC accepts       |       Difficulty:  Easy (less than 1
  invalid program                    |  hour)
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+-------------------------------------

Comment (by Austin Seipp <austin@…>):

 In [changeset:3ee47002dd483e0daa604d37ec45dc33133ff04b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="3ee47002dd483e0daa604d37ec45dc33133ff04b"
 Make sure type literals aren't negative (#8306)

 As Krzysztof pointed out in #8306, with NegativeLiterals and DataKinds,
 definitions such as:

   type T = -1

 were accepted, although type literals must be greater than zero.

 Signed-off-by: Austin Seipp <[email protected]>
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8306#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
ghc-tickets mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-tickets

Reply via email to