[GHC] #8542: Suggest NegativeLiterals

GHC ghc-devs at haskell.org
Fri Nov 22 15:55:06 UTC 2013


#8542: Suggest NegativeLiterals
----------------------------------------------+----------------------------
        Reporter:  monoidal                   |            Owner:
            Type:  bug                        |           Status:  closed
        Priority:  normal                     |        Milestone:
       Component:  Compiler                   |          Version:  7.7
      Resolution:  fixed                      |         Keywords:
Operating System:  Unknown/Multiple           |     Architecture:
 Type of failure:  None/Unknown               |  Unknown/Multiple
       Test Case:  numeric/should_fail/T8542  |       Difficulty:  Unknown
        Blocking:                             |       Blocked By:
                                              |  Related Tickets:
----------------------------------------------+----------------------------
Changes (by simonpj):

 * status:  patch => closed
 * testcase:   => numeric/should_fail/T8542
 * resolution:   => fixed


Comment:

 I pushed this, modified a bit to give errors like
 {{{
 T7895.hs:13:6: Warning:
     Literal -129 is out of the Int8 range -128..127
 }}}
 That is, we now give the expected range explicitly.

 Simon

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


More information about the ghc-tickets mailing list