
#8695: Arithmetic overflow from (minBound :: Int) `quot` (-1) ------------------------------------------------+-------------------------- Reporter: rleslie | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 7.10.1 Component: libraries/haskell2010 | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result at runtime | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: #1042 ------------------------------------------------+-------------------------- Changes (by carter): * type: bug => feature request * milestone: 7.8.1 => 7.10.1 Comment: @rleslie, I spoke with a few ghc devs. We definitely want to improve this. 1) this won't happen for 7.8. For several main reasons a) 7.8 is already in RC. So 7.8.1 is only going to get bug fixes relative to the current Release Candidate b) its actually a pretty reasonable default currently, because as rwbarton argues, theres no "unique" solution concept. c) it should really only be done as part of a whole sale cleanup of how ghc handles ints and friends internally. Basically, this ticket is a great motivating example for cleaning up the numbers situation in ghc. And Fixing this up a bit more systematically is definitely something thats can make it into 7.10 (time / resources permitting of course). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8695#comment:29 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler