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:
ffb05ba
)
[project @ 1999-01-15 14:06:53 by sof]
author
sof
<unknown>
Fri, 15 Jan 1999 14:06:53 +0000
(14:06 +0000)
committer
sof
<unknown>
Fri, 15 Jan 1999 14:06:53 +0000
(14:06 +0000)
Parser didn't like "instance Foo X where {}". Does now.
ghc/compiler/parser/hsparser.y
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/hsparser.y
b/ghc/compiler/parser/hsparser.y
index
7e18245
..
e685136
100644
(file)
--- a/
ghc/compiler/parser/hsparser.y
+++ b/
ghc/compiler/parser/hsparser.y
@@
-916,6
+916,7
@@
maybe_where:
| WHERE vocurly decls vccurly { $$ = $3; }
/* A where containing no decls is OK */
| WHERE { $$ = mknullbind(); }
+ | WHERE ocurly ccurly { $$ = mknullbind(); }
| /* empty */ { $$ = mknullbind(); }
;