From 21d9d5734bffa93637472ab07b8576bb23b76577 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Fri, 15 Jan 1999 14:06:53 +0000
Subject: [PATCH] [project @ 1999-01-15 14:06:53 by sof] Parser didn't like
 "instance Foo X where {}". Does now.

---
 ghc/compiler/parser/hsparser.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ghc/compiler/parser/hsparser.y b/ghc/compiler/parser/hsparser.y
index 7e1824511beb..e6851364f855 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(); }
 	;
 
-- 
GitLab