2 Dec 18:36
Bounded and floating types
From: Conal Elliott <conal <at> conal.net>
Subject: Bounded and floating types
Newsgroups: gmane.comp.lang.haskell.libraries
Date: 2007-12-02 17:39:51 GMT
Subject: Bounded and floating types
Newsgroups: gmane.comp.lang.haskell.libraries
Date: 2007-12-02 17:39:51 GMT
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 <at> haskell.org http://www.haskell.org/mailman/listinfo/libraries
RSS Feed