From c880919aca8c0df8186a17b22ca4b2c9875883b7 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 21 Dec 2001 10:24:24 +0000 Subject: [PATCH] [project @ 2001-12-21 10:24:24 by simonmar] Allow record declaratoins with zero fields. --- ghc/compiler/parser/Parser.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/parser/Parser.y b/ghc/compiler/parser/Parser.y index 746987f..447f261 100644 --- a/ghc/compiler/parser/Parser.y +++ b/ghc/compiler/parser/Parser.y @@ -1,6 +1,6 @@ {- ----------------------------------------------------------------------------- -$Id: Parser.y,v 1.80 2001/12/20 11:19:08 simonpj Exp $ +$Id: Parser.y,v 1.81 2001/12/21 10:24:24 simonmar Exp $ Haskell grammar. @@ -635,6 +635,7 @@ context :: { RdrNameContext } constr_stuff :: { (RdrName, RdrNameConDetails) } : btype {% mkVanillaCon $1 [] } | btype '!' atype satypes {% mkVanillaCon $1 (BangType MarkedUserStrict $3 : $4) } + | gtycon '{' '}' {% mkRecCon $1 [] } | gtycon '{' fielddecls '}' {% mkRecCon $1 $3 } | sbtype conop sbtype { ($2, InfixCon $1 $3) } -- 1.7.10.4