X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FParser.y.pp;h=c0d3f4eb9372ba2217110f0bef639475ab56eb40;hp=0209ec8f67d75cc244f96763c63f5d292cc11e4f;hb=1b1e5a46082b74cb7ce05c14def21416375a9545;hpb=a515009d89b62d6bc4fc34844db37edb5d4ef6ac diff --git a/compiler/parser/Parser.y.pp b/compiler/parser/Parser.y.pp index 0209ec8..c0d3f4e 100644 --- a/compiler/parser/Parser.y.pp +++ b/compiler/parser/Parser.y.pp @@ -1186,8 +1186,8 @@ exp10 :: { LHsExpr RdrName } : '\\' aexp aexps opt_asig '->' exp {% checkPatterns ($2 : reverse $3) >>= \ ps -> return (LL $ HsLam (mkMatchGroup [LL $ Match ps $4 - (GRHSs (unguardedRHS $6) emptyLocalBinds - )])) } + (unguardedGRHSs $6) + ])) } | 'let' binds 'in' exp { LL $ HsLet (unLoc $2) $4 } | 'if' exp 'then' exp 'else' exp { LL $ HsIf $2 $4 $6 } | 'case' exp 'of' altslist { LL $ HsCase $2 (mkMatchGroup (unLoc $4)) }