Skip to content

Commit

Permalink
Add UnboxedTuples changes to release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Aug 13, 2012
1 parent 24c5c50 commit d6fd2bf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/users_guide/7.6.1-notes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,31 @@ if | x == 0 -> [...]
See <xref linkend="multi-way-if" /> for more information.
</para>
</listitem>
<listitem>
<para>
Some limitations on the usage of unboxed tuples have been lifted.
For example, when the <literal>UnboxedTuples</literal> extension
is on, an unboxed tuple can now be used as the type of a
constructor, function argument, or variable:
<programlisting>
data Foo = Foo (# Int, Int #)

f :: (# Int, Int #) -&gt; (# Int, Int #)
f x = x

g :: (# Int, Int #) -&gt; Int
g (# a,b #) = a

h x = let y = (# x,x #) in ...
</programlisting>
</para>
<para>
Unboxed tuple can now also be nested:
<programlisting>
f :: (# Int, (# Int, Int #), Bool #)
</programlisting>
</para>
</listitem>
</itemizedlist>
</sect3>

Expand Down

0 comments on commit d6fd2bf

Please sign in to comment.