diff options
author | Tom Smeding <tom@tomsmeding.com> | 2022-06-14 19:12:53 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2022-06-14 19:12:53 +0200 |
commit | aa6327c3f630c9b7b7ceef8d07f3a57ca03cccf1 (patch) | |
tree | ac54f3f5d17e6c69b3d2ec894547bc767a269a0d /src | |
parent | 181bdd640a5a605ed43cc14b295a6536541e428e (diff) |
Early-catch large show output with -interactive-print
Diffstat (limited to 'src')
-rw-r--r-- | src/Ghci.hs | 3 |
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 } |