On 2009 Mar 20, at 18:01, Sean Bartell wrote:...but there is (%) :: (Integral a) => a -> a -> Ratio a
For a type "a" to be Fractional requires there to be:
(/) :: a -> a -> a
You can't divide an Int by another Int and (in general) get a third
Int. You would probably want something like a "Fractionable"
typeclass, with
(/) :: a -> a -> b
which would result in a Rational, but Haskell doesn't have this.