[Haskell-cafe] Exception for NaN

wren ng thornton wren at freegeek.org
Sun May 15 02:57:10 CEST 2011


On 5/12/11 3:22 PM, Andrew Coppin wrote:
> There is an isNaN function somewhere.

N.B., on Hugs (September 2006), isNaN is flagrantly broken; so is 
isInfinite. I have a solution available[1], but alas, it seems unlikely 
to ever make its way back upstream.

Moral: double check your compiler before trusting things like that.


[1] 
http://hackage.haskell.org/packages/archive/logfloat/0.12.1/doc/html/Hugs-RealFloat.html

-- 
Live well,
~wren



More information about the Haskell-Cafe mailing list