Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/942555518d095ce2c5b9ec3b7ad2e85c7961ef3e

>---------------------------------------------------------------

commit 942555518d095ce2c5b9ec3b7ad2e85c7961ef3e
Author: Ian Lynagh <ig...@earth.li>
Date:   Mon Sep 26 23:54:08 2011 +0100

    Document TraditionalRecordSyntax

>---------------------------------------------------------------

 docs/users_guide/flags.xml        |    6 ++++++
 docs/users_guide/glasgow_exts.xml |   13 +++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml
index 5368d8f..74d9927 100644
--- a/docs/users_guide/flags.xml
+++ b/docs/users_guide/flags.xml
@@ -746,6 +746,12 @@
              <entry><option>-XNPlusKPatterns</option></entry>
            </row>
            <row>
+             <entry><option>-XNoTraditionalRecordSyntax</option></entry>
+             <entry>Disable support for traditional record syntax (as 
supported by Haskell 98) <literal>C {f = x}</literal></entry>
+             <entry>dynamic</entry>
+             <entry><option>-XTraditionalRecordSyntax</option></entry>
+           </row>
+           <row>
              <entry><option>-XNoMonoPatBinds</option></entry>
              <entry>Make <link linkend="monomorphism">pattern bindings 
polymorphic</link></entry>
              <entry>dynamic</entry>
diff --git a/docs/users_guide/glasgow_exts.xml 
b/docs/users_guide/glasgow_exts.xml
index 68a2706..5070b17 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -831,6 +831,19 @@ it, you can use the <option>-XNoNPlusKPatterns</option> 
flag.
 
 </sect2>
 
+    <!-- ===================== Traditional record syntax ===================  
-->
+
+<sect2 id="traditional-record-syntax">
+<title>Traditional record syntax</title>
+<indexterm><primary><option>-XNoTraditionalRecordSyntax</option></primary></indexterm>
+
+<para>
+Traditional record syntax, such as <literal>C {f = x}</literal>, is enabled by 
default.
+To disable it, you can use the <option>-XNoTraditionalRecordSyntax</option> 
flag.
+</para>
+
+</sect2>
+
     <!-- ===================== Recursive do-notation ===================  -->
 
 <sect2 id="recursive-do-notation">



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to