[Haskell-cafe] ANN: logfloat

wren ng thornton wren at freegeek.org
Fri Aug 15 21:28:56 EDT 2008

Felipe Lessa wrote:
> I should point out just in case that 1 / 0 isn't infinity on all
> Fractional types (e.g. Rational). I guess it shouldn't cause a problem
> with your library, but a warning on the Haddock entry would be nice to
> avoid surprising people who didn't see the internal implementation.
> Nice lib, by the way. Thanks,

Ah, interesting. I missed that one. I'm wondering if there's any 
portable notion of infinity on Rationals. GHC.Real uses 1%0, but Hugs 
gives an overflow for toRational(1/0)... Time to go digging.

In the mean time I'll add a note about it. Thanks.

Live well,

More information about the Haskell-Cafe mailing list