[commit: ghc] master: Document -XNegativeLiterals in the relase notes. (dace02d)

git at git.haskell.org git at git.haskell.org
Thu Aug 29 07:15:18 CEST 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dace02d273fbefdddf597afb7b0a8a4d6598356c/ghc

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

commit dace02d273fbefdddf597afb7b0a8a4d6598356c
Author: Austin Seipp <aseipp at pobox.com>
Date:   Wed Aug 28 17:25:00 2013 -0500

    Document -XNegativeLiterals in the relase notes.
    
    Signed-off-by: Austin Seipp <aseipp at pobox.com>


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

dace02d273fbefdddf597afb7b0a8a4d6598356c
 docs/users_guide/7.8.1-notes.xml |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/docs/users_guide/7.8.1-notes.xml b/docs/users_guide/7.8.1-notes.xml
index e2a5785..6995beb 100644
--- a/docs/users_guide/7.8.1-notes.xml
+++ b/docs/users_guide/7.8.1-notes.xml
@@ -180,6 +180,20 @@
                </para>
            </listitem>
        </itemizedlist>
+
+        <itemizedlist>
+            <listitem>
+                <para>
+                    There is a new extension,
+                    <literal>NegativeLiterals</literal>, which will
+                    cause GHC to interpret the expression
+                    <literal>-123</literal> as <literal>fromIntegral
+                    (-123)</literal>. Haskell 98 and Haskell 2010 both
+                    specify that it should instead desugar to
+                    <literal>negate (fromIntegral 123)</literal>
+               </para>
+           </listitem>
+       </itemizedlist>
     </sect3>
 
     <sect3>





More information about the ghc-commits mailing list