[commit: ghc] master: Add parsePattern parser entry point (38f3745)

git at git.haskell.org git at git.haskell.org
Sun Jun 21 19:52:35 UTC 2015


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

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

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

commit 38f374571290b8115ef5b82587ac2ec6c18e91f1
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Sun Jun 21 21:52:58 2015 +0200

    Add parsePattern parser entry point
    
    Reviewers: austin, thomie, alanz
    
    Reviewed By: thomie, alanz
    
    Subscribers: thomie, bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1005
    
    GHC Trac Issues: #10556


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

38f374571290b8115ef5b82587ac2ec6c18e91f1
 compiler/parser/Parser.y | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y
index 5414735..d5d8c6c 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -31,7 +31,8 @@
 --       parseState = mkPState flags buffer location
 -- @
 module Parser (parseModule, parseImport, parseStatement,
-               parseDeclaration, parseExpression, parseTypeSignature,
+               parseDeclaration, parseExpression, parsePattern,
+               parseTypeSignature,
                parseFullStmt, parseStmt, parseIdentifier,
                parseType, parseHeader) where
 
@@ -561,6 +562,7 @@ TH_QQUASIQUOTE  { L _ (ITqQuasiQuote _) }
 %name parseStatement stmt
 %name parseDeclaration topdecl
 %name parseExpression exp
+%name parsePattern pat
 %name parseTypeSignature sigdecl
 %name parseFullStmt   stmt
 %name parseStmt   maybe_stmt



More information about the ghc-commits mailing list