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:
855e7dc
)
[project @ 1997-05-18 04:09:01 by sof]
author
sof
<unknown>
Sun, 18 May 1997 04:09:01 +0000
(
04:09
+0000)
committer
sof
<unknown>
Sun, 18 May 1997 04:09:01 +0000
(
04:09
+0000)
Moved intToDigit to PrelBase
ghc/lib/required/Char.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/required/Char.lhs
b/ghc/lib/required/Char.lhs
index
b95487a
..
3df0bee
100644
(file)
--- a/
ghc/lib/required/Char.lhs
+++ b/
ghc/lib/required/Char.lhs
@@
-41,10
+41,5
@@
digitToInt c
| c >= 'A' && c <= 'F' = fromEnum c - fromEnum 'A' + 10
| otherwise = error "Char.digitToInt: not a digit" -- sigh
-intToDigit :: Int -> Char
-intToDigit i
- | i >= 0 && i <= 9 = toEnum (fromEnum '0' + i)
- | i >= 10 && i <= 15 = toEnum (fromEnum 'a' + i -10)
- | otherwise = error "Char.intToDigit: not a digit" -- ....
\end{code}