[commit: ghc] master: Improve "specImport discarding" message (9fae691)

git at git.haskell.org git at git.haskell.org
Fri Aug 29 10:03:52 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9fae691982f02bc1d004ab26cf7829f8d1a53fcb/ghc

>---------------------------------------------------------------

commit 9fae691982f02bc1d004ab26cf7829f8d1a53fcb
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Aug 29 10:19:37 2014 +0100

    Improve "specImport discarding" message


>---------------------------------------------------------------

9fae691982f02bc1d004ab26cf7829f8d1a53fcb
 compiler/specialise/Specialise.lhs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/specialise/Specialise.lhs b/compiler/specialise/Specialise.lhs
index ee8f693..517f022 100644
--- a/compiler/specialise/Specialise.lhs
+++ b/compiler/specialise/Specialise.lhs
@@ -1614,7 +1614,8 @@ instance Outputable CallInfoSet where
 
 pprCallInfo :: Id -> CallInfo -> SDoc
 pprCallInfo fn (CallKey mb_tys, (dxs, _))
-  = hang (ppr fn) 2 (sep (map ppr_call_key_ty mb_tys ++ map pprParendExpr dxs))
+  = hang (ppr fn <+> dcolon <+> ppr (idType fn)) 
+       2 (ptext (sLit "args:") <+> fsep (map ppr_call_key_ty mb_tys ++ map pprParendExpr dxs))
 
 ppr_call_key_ty :: Maybe Type -> SDoc
 ppr_call_key_ty Nothing   = char '_'



More information about the ghc-commits mailing list