X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Flib%2Fstd%2FPrelReal.lhs;h=a68297f52a315ad794bc4578ed073bfa5a6b461d;hb=a49a772808296f7d39c079e0e430e80fe94a89c0;hp=7229c6a41c07bced3d97bc775535dbb9543faabd;hpb=32895cc4ae0479261018cafb6be10cbda9f75c4f;p=ghc-hetmet.git diff --git a/ghc/lib/std/PrelReal.lhs b/ghc/lib/std/PrelReal.lhs index 7229c6a..a68297f 100644 --- a/ghc/lib/std/PrelReal.lhs +++ b/ghc/lib/std/PrelReal.lhs @@ -1,5 +1,5 @@ % ------------------------------------------------------------------------------ -% $Id: PrelReal.lhs,v 1.13 2001/03/29 08:03:47 qrczak Exp $ +% $Id: PrelReal.lhs,v 1.14 2001/08/28 15:36:52 simonmar Exp $ % % (c) The University of Glasgow, 1994-2000 % @@ -226,7 +226,7 @@ instance (Integral a) => Num (Ratio a) where instance (Integral a) => Fractional (Ratio a) where {-# SPECIALIZE instance Fractional Rational #-} (x:%y) / (x':%y') = (x*y') % (y*x') - recip (x:%y) = if x < 0 then (-y) :% (-x) else y :% x + recip (x:%y) = y % x fromRational (x:%y) = fromInteger x :% fromInteger y instance (Integral a) => Real (Ratio a) where