Tweak ... generation
authorIan Lynagh <igloo@earth.li>
Sat, 5 May 2007 14:41:31 +0000 (14:41 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 5 May 2007 14:41:31 +0000 (14:41 +0000)
Avoid:
    let x ...
i.e. always put the = in:
    let x = ...

compiler/hsSyn/HsExpr.lhs

index 23b6b13..11b4df3 100644 (file)
@@ -694,11 +694,9 @@ pprMatch ctxt (Match pats maybe_ty grhss)
 
 pprGRHSs :: OutputableBndr id => HsMatchContext id -> GRHSs id -> SDoc
 pprGRHSs ctxt (GRHSs grhss binds)
-  = pprDeeper
-    (vcat (map (pprGRHS ctxt . unLoc) grhss)
-      $$
-     if isEmptyLocalBinds binds then empty
-     else text "where" $$ nest 4 (pprBinds binds))
+  = vcat (map (pprGRHS ctxt . unLoc) grhss)
+ $$ if isEmptyLocalBinds binds then empty
+                               else text "where" $$ nest 4 (pprBinds binds)
 
 pprGRHS :: OutputableBndr id => HsMatchContext id -> GRHS id -> SDoc