2 % (c) The AQUA Project, Glasgow University, 1994-1999
5 \section[Ratio]{Module @Ratio@}
7 Standard functions on rational numbers
10 {-# OPTIONS -fno-implicit-prelude #-}
15 , (%) -- :: (Integral a) => a -> a -> Ratio a
16 , numerator -- :: (Integral a) => Ratio a -> a
17 , denominator -- :: (Integral a) => Ratio a -> a
18 , approxRational -- :: (RealFrac a) => a -> a -> Rational
21 -- (Integral a) => Eq (Ratio a)
22 -- (Integral a) => Ord (Ratio a)
23 -- (Integral a) => Num (Ratio a)
24 -- (Integral a) => Real (Ratio a)
25 -- (Integral a) => Fractional (Ratio a)
26 -- (Integral a) => RealFrac (Ratio a)
27 -- (Integral a) => Enum (Ratio a)
28 -- (Read a, Integral a) => Read (Ratio a)
29 -- (Integral a) => Show (Ratio a)
31 -- Implementation checked wrt. Haskell 98 lib report, 1/99.