[commit: ghc] ghc-7.10: Clarify parsing infelicity. (6b8da22)

git at git.haskell.org git at git.haskell.org
Tue Sep 29 16:09:59 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/6b8da220f918a190d1a716420cc2014ed229df2e/ghc

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

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

    Clarify parsing infelicity.
    
    This fixes #10855.


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

6b8da220f918a190d1a716420cc2014ed229df2e
 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 1d7903a..3eb5304 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