
I don't think we can run around changing the Haskell 98 class structure, imperfect though it may be. Simon | -----Original Message----- | From: Ashley Yakeley [mailto:ashley@semantic.org] | Sent: 09 April 2002 04:58 | To: Libraries for Haskell List | Subject: Numeric Classes Quibble | | | Currently 'floor' doesn't work on Integers. I think this is | undesirable. | | I submit that all the members of RealFrac: 'properFraction', | 'truncate', | 'round', 'ceiling' and 'floor' be moved up to Real. I can already | construct them for Integral (the other subclass of Real): | | properFraction' :: (Integral a,Integral b) => a -> (b,a); | properFraction' a = (fromIntegral a,0); | | (all the others are derived) | | | -- | Ashley Yakeley, Seattle WA | | _______________________________________________ | Libraries mailing list | Libraries@haskell.org | http://www.haskell.org/mailman/listinfo/libraries |
participants (1)
-
Simon Peyton-Jones