diff --git a/ghc/compiler/main/ErrUtils.lhs b/ghc/compiler/main/ErrUtils.lhs index 39bdd00c00dbb35fd7acb6d8d21dfee82be827a9..96c7b671303bd77d503055a8f28eae1d004f33b1 100644 --- a/ghc/compiler/main/ErrUtils.lhs +++ b/ghc/compiler/main/ErrUtils.lhs @@ -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