X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fghci%2FDebugger.hs;h=179f68403b68d2004778fdef12ca866a926ca0e5;hp=36c784b2389d17b119ba7d0151d7a610ed9bb97a;hb=593b7f500268c3eb28146b3e6b46fedd8dba2a2a;hpb=9e95b0d6162ea28ad250339affa0d67d2919ef6d diff --git a/compiler/ghci/Debugger.hs b/compiler/ghci/Debugger.hs index 36c784b..179f684 100644 --- a/compiler/ghci/Debugger.hs +++ b/compiler/ghci/Debugger.hs @@ -138,10 +138,9 @@ bindSuspensions cms@(Session ref) t = do -- A custom Term printer to enable the use of Show instances showTerm :: Session -> Term -> IO SDoc -showTerm cms@(Session ref) = cPprTerm cPpr +showTerm cms@(Session ref) = cPprTerm (liftM2 (++) cPprShowable cPprTermBase) where - cPpr = \p-> cPprShowable : cPprTermBase p - cPprShowable prec ty _ val tt = + cPprShowable _y = [\prec ty _ val tt -> if not (all isFullyEvaluatedTerm tt) then return Nothing else do @@ -164,7 +163,7 @@ showTerm cms@(Session ref) = cPprTerm cPpr _ -> return Nothing `finally` do writeIORef ref hsc_env - GHC.setSessionDynFlags cms dflags + GHC.setSessionDynFlags cms dflags] needsParens ('"':_) = False -- some simple heuristics to see whether parens -- are redundant in an arbitrary Show output needsParens ('(':_) = False