11 Mar
2005
11 Mar
'05
10:10 a.m.
Haskell does not guarantee that 1/0 is well defined, nor that -(1/0) is different from 1/0. While the former is true for IEEE floating point numbers, the latter is only true when using affine infinities. -- Lennart Frederik Eaton wrote:
Shouldn't Double, Float, etc. be instances of Bounded?
I've declared e.g.
instance Bounded Double where minBound = -(1/0) maxBound = 1/0
in a module where I needed it and there doesn't seem to be any issue with the definition...
Frederik