From e40b7641a33099f6abeaadfe562c221be4891120 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 31 Mar 2003 13:08:49 +0000 Subject: [PATCH] [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. --- ghc/docs/users_guide/bugs.sgml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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. + + -- 1.7.10.4