[commit: ghc] master: Clarify parsing infelicity. (27f9186)

git at git.haskell.org git at git.haskell.org
Mon Sep 21 01:43:59 UTC 2015


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

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

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

commit 27f9186d8e35387c3f48f848ff3b2c8e967a9c97
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Sep 19 16:44:29 2015 -0400

    Clarify parsing infelicity.
    
    This fixes #10855.


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

27f9186d8e35387c3f48f848ff3b2c8e967a9c97
 docs/users_guide/bugs.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/docs/users_guide/bugs.xml b/docs/users_guide/bugs.xml
index 1b4d5c9..bff2bcf 100644
--- a/docs/users_guide/bugs.xml
+++ b/docs/users_guide/bugs.xml
@@ -101,6 +101,18 @@ main = do args <- getArgs
 <programlisting>
     (let x = 42 in x == 42 == True)</programlisting></para>
 	</listitem>
+
+	<listitem>
+	  <para>The Haskell Report allows you to put a unary
+	  <literal>-</literal> preceding certain expressions headed by
+	  keywords, allowing constructs like <literal>- case x of
+	  ...</literal> or <literal>- do { ... }</literal>. GHC does
+	  not allow this. Instead, unary <literal>-</literal> is
+	  allowed before only expressions that could potentially
+	  be applied as a function.
+	  </para>
+	</listitem>
+
       </itemizedlist>
     </sect3>
 



More information about the ghc-commits mailing list