From 403ffff4279671d32e645888b8d9743f73cb4acd Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 26 Nov 2008 13:48:14 +0000 Subject: [PATCH] Format output for :t more nicely --- compiler/ghci/InteractiveUI.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 4741a61..54bdebb 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -1210,8 +1210,7 @@ typeOfExpr str ty <- GHC.exprType str dflags <- getDynFlags let pefas = dopt Opt_PrintExplicitForalls dflags - printForUser $ text str <+> dcolon - <+> pprTypeForUser pefas ty + printForUser $ sep [text str, nest 2 (dcolon <+> pprTypeForUser pefas ty)] kindOfType :: String -> GHCi () kindOfType str -- 1.7.10.4