[commit: ghc] master: Support the syntax [e||...||] for typed expression brackets. (61e9f51)

git at git.haskell.org git at git.haskell.org
Thu Oct 17 19:45:01 UTC 2013


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

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

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

commit 61e9f5124c1ccc020eb7ab20688c878a759ece8a
Author: Geoffrey Mainland <mainland at cs.drexel.edu>
Date:   Thu Oct 17 14:09:01 2013 -0400

    Support the syntax [e||...||] for typed expression brackets.


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

61e9f5124c1ccc020eb7ab20688c878a759ece8a
 compiler/parser/Lexer.x |    1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x
index 0b18597..1ace315 100644
--- a/compiler/parser/Lexer.x
+++ b/compiler/parser/Lexer.x
@@ -318,6 +318,7 @@ $tab+         { warn Opt_WarnTabs (text "Tab character") }
   "[|"        / { ifExtension thEnabled } { token ITopenExpQuote }
   "[||"       / { ifExtension thEnabled } { token ITopenTExpQuote }
   "[e|"       / { ifExtension thEnabled } { token ITopenExpQuote }
+  "[e||"      / { ifExtension thEnabled } { token ITopenTExpQuote }
   "[p|"       / { ifExtension thEnabled } { token ITopenPatQuote }
   "[d|"       / { ifExtension thEnabled } { layout_token ITopenDecQuote }
   "[t|"       / { ifExtension thEnabled } { token ITopenTypQuote }



More information about the ghc-commits mailing list