read "hexadecimal digits"?
Kwanghoon Choi <[email protected]> Mon, 31 May 2004 13:38:28 +0900 (JST)
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi,
As the following script shows, hexa-decimal digits
cannot be recognized by 'Prelude.read'.
It seems to be a bug.
Regards,
Kwanghoon Choi
================================================
[khchoi@www] 37 % cat Test.hs
module Main where
import Char
main =
do {
putStrLn (show (chr (read "0x2B" :: Int)))
}
[khchoi@www] 39 % nhc98 -o test Test.hs
[khchoi@www] 40 % ./test
Prelude.read: no parse
[khchoi@www] 41 %