|
| <prev next> |
bug in instance Read Int: msg#00091lang.haskell.glasgow.bugs
The Haskell'98 Report specifies that 'read'ing an Int should accept only decimal notation instance Read Int where readsPrec p = readSigned readDec (or near equivalent), yet ghc seems to read hexadecimal Ints. Prelude> show (Char.chr (read "0x2B" :: Int)) "'+'" Prelude> Ghc's behaviour seems entirely reasonable, but it does not conform to the Report. Should we regard this as a bug in the definition therefore? Is there an on-going errata list for the final Revised Report? Regards, Malcolm
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-960029 ] Segmentation fault with Template Haskell, SourceForge.net |
|---|---|
| Previous by Thread: | pack.deps in 6-2-branch, Serge D. Mechveliani |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |