Eta.Classes.Real
Description
The Real type class defines how to convert a numerical value into a full precision Rational value
Real
Rational
class (Num a, Ord a) => Real a where #
Minimal complete definition
toRational
Methods
toRational :: a -> Rational #
Instances
toRational :: Int -> Rational #
toRational :: Int8 -> Rational #
toRational :: Int16 -> Rational #
toRational :: Int32 -> Rational #
toRational :: Int64 -> Rational #
toRational :: Integer -> Rational #
toRational :: Word -> Rational #
toRational :: Ratio a -> Rational #