From: simonpj@microsoft.com Date: Fri, 11 Aug 2006 11:04:35 +0000 (+0000) Subject: Two more error message indendations X-Git-Tag: Before_FC_branch_merge~221 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=2ed6929441ca033f2c5e1cf1a836579fff30b073 Two more error message indendations --- diff --git a/compiler/typecheck/TcRnTypes.lhs b/compiler/typecheck/TcRnTypes.lhs index 3c3ca95..3b12477 100644 --- a/compiler/typecheck/TcRnTypes.lhs +++ b/compiler/typecheck/TcRnTypes.lhs @@ -798,7 +798,8 @@ data InstOrigin \begin{code} pprInstLoc :: InstLoc -> SDoc pprInstLoc (InstLoc orig locn _) - = hsep [text "arising from", pp_orig orig, text "at", ppr locn] + = sep [text "arising from" <+> pp_orig orig, + text "at" <+> ppr locn] where pp_orig (OccurrenceOf name) = hsep [ptext SLIT("use of"), quotes (ppr name)] pp_orig (IPOccOrigin name) = hsep [ptext SLIT("use of implicit parameter"), quotes (ppr name)] diff --git a/compiler/typecheck/TcSimplify.lhs b/compiler/typecheck/TcSimplify.lhs index e142418..3c8160c 100644 --- a/compiler/typecheck/TcSimplify.lhs +++ b/compiler/typecheck/TcSimplify.lhs @@ -2451,8 +2451,8 @@ addNoInstanceErrs mb_what givens dicts ptext SLIT("to the") <+> what] ] fix2 | null instance_dicts = [] - | otherwise = [ ptext SLIT("add an instance declaration for") - <+> pprDictsTheta instance_dicts ] + | otherwise = [ sep [ptext SLIT("add an instance declaration for"), + pprDictsTheta instance_dicts] ] instance_dicts = [d | d <- dicts, isClassDict d, not (isTyVarDict d)] -- Insts for which it is worth suggesting an adding an instance declaration -- Exclude implicit parameters, and tyvar dicts