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:
9bb7a81
)
[project @ 1999-05-13 10:52:55 by sof]
author
sof
<unknown>
Thu, 13 May 1999 10:52:55 +0000
(10:52 +0000)
committer
sof
<unknown>
Thu, 13 May 1999 10:52:55 +0000
(10:52 +0000)
wibble
ghc/lib/std/PrelRead.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/std/PrelRead.lhs
b/ghc/lib/std/PrelRead.lhs
index
c298bcb
..
a03963b
100644
(file)
--- a/
ghc/lib/std/PrelRead.lhs
+++ b/
ghc/lib/std/PrelRead.lhs
@@
-269,8
+269,8
@@
lexLitChar ('\\':s) = do
mzero
else
case base of
- 8 -> return ('o':num', res)
- 16 -> return ('x':num', res)
+ 8 -> return ('o':num, res)
+ 16 -> return ('x':num, res)
_ -> return (num, res)
toAnInt base xs = foldl (\ acc n -> acc*base + n) 0 (map digitToInt xs)