[GHC] #3070: floor(0/0) should not be defined
GHC
trac at galois.com
Sun Nov 22 10:03:48 EST 2009
#3070: floor(0/0) should not be defined
---------------------------+------------------------------------------------
Reporter: carette | Owner: squadette
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: Prelude | Version: 6.10.1
Resolution: | Keywords:
Difficulty: Unknown | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: None/Unknown |
---------------------------+------------------------------------------------
Comment (by carette):
I don't think that exact patch is quite the way to go. Actually, I think
that decodeFloat should be fixed to throw an exception when encountering
NaN or infinities -- that's much more compatible with IEEE 754-2008.
Also, there should probably be an isFinite :: Double -> Bool function,
which would help guard against 'weird' floats with one check, not two.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3070#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list