[commit: ghc] master: More info for Implication with -dppr-debug (02edb8f)

git at git.haskell.org git at git.haskell.org
Thu Sep 13 13:01:31 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/02edb8f2f973a8df26cfb6dfab0ef99a832f711f/ghc

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

commit 02edb8f2f973a8df26cfb6dfab0ef99a832f711f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Sep 13 12:56:29 2018 +0100

    More info for Implication with -dppr-debug


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

02edb8f2f973a8df26cfb6dfab0ef99a832f711f
 compiler/typecheck/TcRnTypes.hs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/typecheck/TcRnTypes.hs b/compiler/typecheck/TcRnTypes.hs
index 41defc7..bdcb5b1 100644
--- a/compiler/typecheck/TcRnTypes.hs
+++ b/compiler/typecheck/TcRnTypes.hs
@@ -2598,7 +2598,7 @@ instance Outputable Implication where
               , ic_given = given, ic_no_eqs = no_eqs
               , ic_wanted = wanted, ic_status = status
               , ic_binds = binds
---              , ic_need_inner = need_in, ic_need_outer = need_out
+              , ic_need_inner = need_in, ic_need_outer = need_out
               , ic_info = info })
    = hang (text "Implic" <+> lbrace)
         2 (sep [ text "TcLevel =" <+> ppr tclvl
@@ -2608,8 +2608,8 @@ instance Outputable Implication where
                , hang (text "Given =")  2 (pprEvVars given)
                , hang (text "Wanted =") 2 (ppr wanted)
                , text "Binds =" <+> ppr binds
---               , text "Needed inner =" <+> ppr need_in
---               , text "Needed outer =" <+> ppr need_out
+               , whenPprDebug (text "Needed inner =" <+> ppr need_in)
+               , whenPprDebug (text "Needed outer =" <+> ppr need_out)
                , pprSkolInfo info ] <+> rbrace)
 
 instance Outputable ImplicStatus where



More information about the ghc-commits mailing list