From: sof Date: Fri, 15 Jan 1999 14:06:53 +0000 (+0000) Subject: [project @ 1999-01-15 14:06:53 by sof] X-Git-Tag: Approx_2487_patches~91 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=21d9d5734bffa93637472ab07b8576bb23b76577;p=ghc-hetmet.git [project @ 1999-01-15 14:06:53 by sof] Parser didn't like "instance Foo X where {}". Does now. --- diff --git a/ghc/compiler/parser/hsparser.y b/ghc/compiler/parser/hsparser.y index 7e18245..e685136 100644 --- 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(); } ;