From: simonmar Date: Mon, 31 Mar 2003 13:08:49 +0000 (+0000) Subject: [project @ 2003-03-31 13:08:49 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1002 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e40b7641a33099f6abeaadfe562c221be4891120;p=ghc-hetmet.git [project @ 2003-03-31 13:08:49 by simonmar] Mention that our Read class accepts hex and octal literals, as an extension to Haskell 98. --- diff --git a/ghc/docs/users_guide/bugs.sgml b/ghc/docs/users_guide/bugs.sgml index dc7dee3..c358ffc 100644 --- a/ghc/docs/users_guide/bugs.sgml +++ b/ghc/docs/users_guide/bugs.sgml @@ -168,7 +168,7 @@ main = print (array (1,1) [(1,2), (1,3)]) - Arbitrary-sized tuples: + Arbitrary-sized tuples Tuples are currently limited to size 61. HOWEVER: standard instances for tuples (Eq, @@ -181,6 +181,18 @@ main = print (array (1,1) [(1,2), (1,3)]) if you get stuck on it. + + + Reading integers + + GHC's implementation of the + Read class for integral types accepts + hexadeciaml and octal literals (the code in the Haskell + 98 report doesn't). So, for example, +read "0xf00" :: Int + works in GHC. + +