aboutsummaryrefslogtreecommitdiff
path: root/src/Ghci.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-06-14 19:12:53 +0200
committerTom Smeding <tom@tomsmeding.com>2022-06-14 19:12:53 +0200
commitaa6327c3f630c9b7b7ceef8d07f3a57ca03cccf1 (patch)
treeac54f3f5d17e6c69b3d2ec894547bc767a269a0d /src/Ghci.hs
parent181bdd640a5a605ed43cc14b295a6536541e428e (diff)
Early-catch large show output with -interactive-print
Diffstat (limited to 'src/Ghci.hs')
-rw-r--r--src/Ghci.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Ghci.hs b/src/Ghci.hs
index 13eb4ca..649403f 100644
--- a/src/Ghci.hs
+++ b/src/Ghci.hs
@@ -47,6 +47,9 @@ makeGhci = do
, std_in = CreatePipe
, std_out = UseHandle pipeIn
, std_err = UseHandle pipeIn }
+ hPutStrLn stdinH ":set -interactive-print=Yahb2Defs.limitedPrint"
+ hPutStrLn stdinH ":m"
+ hFlush stdinH
return Ghci { ghciProc = proch
, ghciStdin = stdinH
, ghciStdout = pipeOut }