Bounded and floating types

Conal Elliott conal at conal.net
Sun Dec 2 12:39:51 EST 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20071202/83610be4/attachment.htm


More information about the Libraries mailing list