projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b2bd7d
)
[project @ 2001-09-26 16:27:04 by simonpj]
author
simonpj
<unknown>
Wed, 26 Sep 2001 16:27:04 +0000
(16:27 +0000)
committer
simonpj
<unknown>
Wed, 26 Sep 2001 16:27:04 +0000
(16:27 +0000)
Wibble
ghc/lib/std/PrelReal.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/std/PrelReal.lhs
b/ghc/lib/std/PrelReal.lhs
index
9114b54
..
cd2c1c0
100644
(file)
--- a/
ghc/lib/std/PrelReal.lhs
+++ b/
ghc/lib/std/PrelReal.lhs
@@
-1,5
+1,5
@@
% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------
-% $Id: PrelReal.lhs,v 1.15 2001/09/26 16:22:04 simonpj Exp $
+% $Id: PrelReal.lhs,v 1.16 2001/09/26 16:27:04 simonpj Exp $
%
% (c) The University of Glasgow, 1994-2000
%
%
% (c) The University of Glasgow, 1994-2000
%
@@
-62,7
+62,7
@@
their greatest common divisor.
\begin{code}
reduce :: (Integral a) => a -> a -> Ratio a
\begin{code}
reduce :: (Integral a) => a -> a -> Ratio a
-{#- SPECIALISE reduce :: Integer -> Integer -> Rational #-}
+{-# 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
reduce _ 0 = error "Ratio.%: zero denominator"
reduce x y = (x `quot` d) :% (y `quot` d)
where d = gcd x y