diff --git a/ghc/compiler/parser/hsparser.y b/ghc/compiler/parser/hsparser.y index f2fc70d5e3f92cefb7fa1c60554faef3563ec4a9..2e78de726ee253217c3c3f89cffadf333594c90c 100644 --- a/ghc/compiler/parser/hsparser.y +++ b/ghc/compiler/parser/hsparser.y @@ -352,6 +352,7 @@ interface_pragma : /* empty */ ; maybeexports : /* empty */ { $$ = mknothing(); } + | OPAREN CPAREN { $$ = mknothing(); } | OPAREN export_list CPAREN { $$ = mkjust($2); } | OPAREN export_list COMMA CPAREN { $$ = mkjust($2); } ;