[project @ 2001-09-26 16:22:04 by simonpj]
authorsimonpj <unknown>
Wed, 26 Sep 2001 16:22:04 +0000 (16:22 +0000)
committersimonpj <unknown>
Wed, 26 Sep 2001 16:22:04 +0000 (16:22 +0000)
Specialise reduce

ghc/lib/std/PrelReal.lhs

index a68297f..9114b54 100644 (file)
@@ -1,5 +1,5 @@
 % ------------------------------------------------------------------------------
-% $Id: PrelReal.lhs,v 1.14 2001/08/28 15:36:52 simonmar Exp $
+% $Id: PrelReal.lhs,v 1.15 2001/09/26 16:22:04 simonpj Exp $
 %
 % (c) The University of Glasgow, 1994-2000
 %
@@ -62,6 +62,7 @@ their greatest common divisor.
 
 \begin{code}
 reduce ::  (Integral a) => a -> a -> Ratio a
+{#- SPECIALISE reduce :: Integer -> Integer -> Rational #-}
 reduce _ 0             =  error "Ratio.%: zero denominator"
 reduce x y             =  (x `quot` d) :% (y `quot` d)
                           where d = gcd x y