Skip to content
Snippets Groups Projects
Commit 5e1ab44b authored by sof's avatar sof
Browse files

[project @ 1998-01-30 16:59:06 by sof]

- intToDigit: if we're going to crash and burn, we might
  as well report back the argument value that caused it.
parent dcdfe521
No related merge requests found
......@@ -791,7 +791,7 @@ 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" -- ....
| otherwise = error ("Char.intToDigit: not a digit: " ++ show i) -- ....
\end{code}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment