[nhc-bugs] read "hexadecimal digits"?
khchoi at jaist.ac.jp
Mon May 31 00:38:28 EDT 2004
As the following script shows, hexa-decimal digits
cannot be recognized by 'Prelude.read'.
It seems to be a bug.
[khchoi at www] 37 % cat Test.hs
module Main where
putStrLn (show (chr (read "0x2B" :: Int)))
[khchoi at www] 39 % nhc98 -o test Test.hs
[khchoi at www] 40 % ./test
Prelude.read: no parse
[khchoi at www] 41 %
More information about the Nhc-bugs