[commit: ghc] wip/lazy-instance-matching: TcInteract: Add braces to matchClassInst trace output (3822b65)
git at git.haskell.org
git at git.haskell.org
Tue Jul 19 11:04:56 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/lazy-instance-matching
Link : http://ghc.haskell.org/trac/ghc/changeset/3822b65f851e1454838a4f4f65a6cc5140d39be8/ghc
>---------------------------------------------------------------
commit 3822b65f851e1454838a4f4f65a6cc5140d39be8
Author: Ben Gamari <ben at smart-cactus.org>
Date: Mon Jul 18 20:17:24 2016 +0200
TcInteract: Add braces to matchClassInst trace output
This allows you to easily move to the result in a well-equipped editor.
>---------------------------------------------------------------
3822b65f851e1454838a4f4f65a6cc5140d39be8
compiler/typecheck/TcInteract.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/typecheck/TcInteract.hs b/compiler/typecheck/TcInteract.hs
index f659b22..298bbb2 100644
--- a/compiler/typecheck/TcInteract.hs
+++ b/compiler/typecheck/TcInteract.hs
@@ -1791,9 +1791,9 @@ matchClassInst dflags inerts clas tys loc
pred = mkClassPred clas tys
matchClassInst dflags _ clas tys loc
- = do { traceTcS "matchClassInst" $ vcat [ text "pred =" <+> ppr (mkClassPred clas tys) ]
+ = do { traceTcS "matchClassInst" $ text "pred =" <+> ppr (mkClassPred clas tys) <+> char '{'
; res <- match_class_inst dflags clas tys loc
- ; traceTcS "matchClassInst result" $ ppr res
+ ; traceTcS "} matchClassInst result" $ ppr res
; return res }
match_class_inst :: DynFlags -> Class -> [Type] -> CtLoc -> TcS LookupInstResult
More information about the ghc-commits
mailing list