Commit e40b7641 authored by simonmar's avatar simonmar
Browse files

[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.
parent 813236fe
......@@ -168,7 +168,7 @@ main = print (array (1,1) [(1,2), (1,3)])</programlisting>
<term>Arbitrary-sized tuples:</term>
<term>Arbitrary-sized tuples</term>
<para>Tuples are currently limited to size 61. HOWEVER:
standard instances for tuples (<literal>Eq</literal>,
......@@ -181,6 +181,18 @@ main = print (array (1,1) [(1,2), (1,3)])</programlisting>
if you get stuck on it.</para>
<term><literal>Read</literal>ing integers</term>
<para>GHC's implementation of the
<literal>Read</literal> class for integral types accepts
hexadeciaml and octal literals (the code in the Haskell
98 report doesn't). So, for example,
<programlisting>read "0xf00" :: Int</programlisting>
works in GHC.</para>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment