[project @ 1999-02-05 14:28:34 by sof]
authorsof <unknown>
Fri, 5 Feb 1999 14:28:34 +0000 (14:28 +0000)
committersof <unknown>
Fri, 5 Feb 1999 14:28:34 +0000 (14:28 +0000)
Add initial empty line to a block of errors/warnings

ghc/compiler/main/ErrUtils.lhs

index 39bdd00..96c7b67 100644 (file)
@@ -59,7 +59,7 @@ dontAddErrLoc title rest_of_err_msg
 
 pprBagOfErrors :: Bag ErrMsg -> SDoc
 pprBagOfErrors bag_of_errors
-  = vcat [p $$ text "" | (_,p) <- sorted_errs ]
+  = text "" $$ vcat [p $$ text "" | (_,p) <- sorted_errs ]
     where
       bag_ls     = bagToList bag_of_errors
       sorted_errs = sortLt occ'ed_before bag_ls