projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19da321
)
[project @ 2005-01-05 15:38:31 by simonpj]
author
simonpj
<unknown>
Wed, 5 Jan 2005 15:38:31 +0000
(15:38 +0000)
committer
simonpj
<unknown>
Wed, 5 Jan 2005 15:38:31 +0000
(15:38 +0000)
Allow trailing semicolon in GADT constructor list
ghc/compiler/parser/Parser.y.pp
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Parser.y.pp
b/ghc/compiler/parser/Parser.y.pp
index
8305022
..
c8a5825
100644
(file)
--- a/
ghc/compiler/parser/Parser.y.pp
+++ b/
ghc/compiler/parser/Parser.y.pp
@@
-873,6
+873,7
@@
gadt_constrlist :: { Located [LConDecl RdrName] }
gadt_constrs :: { Located [LConDecl RdrName] }
: gadt_constrs ';' gadt_constr { LL ($3 : unLoc $1) }
+ | gadt_constrs ';' { $1 }
| gadt_constr { L1 [$1] }
gadt_constr :: { LConDecl RdrName }