X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FdeSugar%2FMatch.lhs;h=a0cdb445a4e00b41d310972042cb2587f9b7623c;hb=44f98be5b3bc7aaf2c5961667b16ee8eca3e67c1;hp=d0ce737936c478efe89bf1ffa9054b2410078d77;hpb=5c96b286de5f32dfaff1fa81712a3dee3d5e6329;p=ghc-hetmet.git diff --git a/ghc/compiler/deSugar/Match.lhs b/ghc/compiler/deSugar/Match.lhs index d0ce737..a0cdb44 100644 --- a/ghc/compiler/deSugar/Match.lhs +++ b/ghc/compiler/deSugar/Match.lhs @@ -613,14 +613,14 @@ matchWrapper kind [(PatMatch (VarPat var) match)] error_string returnDs (var:vars, core_expr) matchWrapper kind [(PatMatch (WildPat ty) match)] error_string - = newSysLocalDs ty `thenDs` \ var -> + = newSysLocalDs ty `thenDs` \ var -> matchWrapper kind [match] error_string `thenDs` \ (vars, core_expr) -> returnDs (var:vars, core_expr) matchWrapper kind [(GRHSMatch (GRHSsAndBindsOut [OtherwiseGRHS expr _] binds _))] error_string - = dsBinds Nothing binds `thenDs` \ core_binds -> - dsExpr expr `thenDs` \ core_expr -> + = dsBinds False{-don't auto-scc-} binds `thenDs` \ core_binds -> + dsExpr expr `thenDs` \ core_expr -> returnDs ([], mkCoLetsAny core_binds core_expr) ---------------------------------------------------------------------------- @@ -718,7 +718,7 @@ flattenMatches kind (match : matches) = flatten_match (pat:pats_so_far) match flatten_match pats_so_far (GRHSMatch (GRHSsAndBindsOut grhss binds ty)) - = dsBinds Nothing binds `thenDs` \ core_binds -> + = dsBinds False{-don't auto-scc-} binds `thenDs` \ core_binds -> dsGRHSs ty kind pats grhss `thenDs` \ match_result -> returnDs (EqnInfo pats (mkCoLetsMatchResult core_binds match_result)) where