[Haskell] instance Bounded Double

Frederik Eaton frederik at ugcs.caltech.edu
Thu Mar 10 19:08:07 EST 2005

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...



More information about the Haskell mailing list