[project @ 1999-01-15 14:06:53 by sof]
authorsof <unknown>
Fri, 15 Jan 1999 14:06:53 +0000 (14:06 +0000)
committersof <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

index 7e18245..e685136 100644 (file)
@@ -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(); }
        ;