[commit: ghc] ghc-7.10: Clarify parsing infelicity. (0e1aa57)

git at git.haskell.org git at git.haskell.org
Thu Oct 22 15:07:58 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/0e1aa575c129880cbc81f23cfb489f22b55efec6/ghc

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

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

    Clarify parsing infelicity.
    
    This fixes #10855.


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

0e1aa575c129880cbc81f23cfb489f22b55efec6
 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