Oops -- I'd incorrectly assumed that Haskell guarantees Float & Double to have infinities.  Thanks,  - Conal

On Dec 2, 2007 9:50 AM, Lennart Augustsson < lennart@augustsson.net> wrote:
But that only makes sense for floating point types that have -Infinity and +Infinity.

On Dec 2, 2007 5:39 PM, Conal Elliott <conal@conal.net> wrote:
Currently Float & Double do not have standard Bounded instances.  Is there any reason not to use the following?

instance Bounded Float  where { minBound = -1/0; maxBound = 1/0 }
instance Bounded Double where { minBound = -1/0; maxBound = 1/0 }

If I don't hear objections, I'll submit a ticket and re-send a proposal note.

- Conal


_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries