diff --git a/ghc/compiler/parser/hsparser.y b/ghc/compiler/parser/hsparser.y index 5c3910a14b510e6a16a1f92c251904ef6109637a..d74d494a660d1234f26615f9346063b51b77e7b8 100644 --- a/ghc/compiler/parser/hsparser.y +++ b/ghc/compiler/parser/hsparser.y @@ -755,7 +755,8 @@ constr_after_context : | OPAREN qconsym CPAREN batypes { $$ = mkconstrpre($2,$4,hsplineno); } /* Con { op1 :: Int } */ - | gtycon OCURLY fields CCURLY { $$ = mkconstrrec($1,$3,hsplineno); } + | qtycon OCURLY fields CCURLY { $$ = mkconstrrec($1,$3,hsplineno); } + | OPAREN qconsym CPAREN OCURLY fields CCURLY { $$ = mkconstrrec($2,$5,hsplineno); } ; /* 1 S/R conflict on OCURLY -> shift */