revert previous fix until I can find out why it was wrong
authorSimon Marlow <simonmar@microsoft.com>
Mon, 23 Apr 2007 13:05:45 +0000 (13:05 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 23 Apr 2007 13:05:45 +0000 (13:05 +0000)
should fix recent GHCi problems in the HEAD

compiler/deSugar/DsGRHSs.lhs

index 55b4f57..07907bd 100644 (file)
@@ -63,7 +63,7 @@ dsGRHSs hs_ctx pats grhssa@(GRHSs grhss binds) rhs_ty =
     let 
        match_result1 = foldr1 combineMatchResults match_results
        match_result2 = adjustMatchResultDs 
-                                 (\e -> bindLocalsDs binders $ 
+                                 (\e -> bindLocalsDs patsBinders $ 
                                         dsLocalBinds binds e) 
                                  match_result1
                -- NB: nested dsLet inside matchResult