[GHC] #13107: Negative literal equal to minBound gives a spurious warning
GHC
ghc-devs at haskell.org
Wed Jan 11 09:03:00 UTC 2017
#13107: Negative literal equal to minBound gives a spurious warning
-------------------------------------+-------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
error/warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by erikd):
I can avoid the warning if I use the `NegativeLiterals` language pragma.
Maybe that language pragma should be a candidate for inclusion as a
default for the next haskell language standard.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13107#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list