Prime -> 2010
[haskell-report.git] / report / lib-hdrs / Ratio.hs
1 module Ratio (
2 Ratio, Rational, (%), numerator, denominator, approxRational ) where
3
4 infixl 7 %
5 data (Integral a) => Ratio a = ...
6 type Rational = Ratio Integer
7 (%) :: (Integral a) => a -> a -> Ratio a
8 numerator, denominator :: (Integral a) => Ratio a -> a
9 approxRational :: (RealFrac a) => a -> a -> Rational
10 instance (Integral a) => Eq (Ratio a) where ...
11 instance (Integral a) => Ord (Ratio a) where ...
12 instance (Integral a) => Num (Ratio a) where ...
13 instance (Integral a) => Real (Ratio a) where ...
14 instance (Integral a) => Fractional (Ratio a) where ...
15 instance (Integral a) => RealFrac (Ratio a) where ...
16 instance (Integral a) => Enum (Ratio a) where ...
17 instance (Read a,Integral a) => Read (Ratio a) where ...
18 instance (Integral a) => Show (Ratio a) where ...
19