Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
575853e3
Commit
575853e3
authored
Sep 26, 2001
by
simonpj
Browse files
[project @ 2001-09-26 16:27:04 by simonpj]
Wibble
parent
1b2bd7df
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/PrelReal.lhs
View file @
575853e3
% ------------------------------------------------------------------------------
% $Id: PrelReal.lhs,v 1.1
5
2001/09/26 16:2
2
:04 simonpj Exp $
% $Id: PrelReal.lhs,v 1.1
6
2001/09/26 16:2
7
:04 simonpj Exp $
%
% (c) The University of Glasgow, 1994-2000
%
...
...
@@ -62,7 +62,7 @@ their greatest common divisor.
\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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment