Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add UnboxedTuples changes to release notes.

  • Loading branch information...
commit d6fd2bfe10c1607c56c0f8e6d8e88d415f8a0c4a 1 parent 24c5c50
@pcapriotti pcapriotti authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 docs/users_guide/7.6.1-notes.xml
View
25 docs/users_guide/7.6.1-notes.xml
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.