Skip to content

Commit 2451c1f

Browse files
committed
Fix line buffering of debuggee output handle
1 parent 8242839 commit 2451c1f

File tree

1 file changed

+1
-1
lines changed
  • hdb/Development/Debug/Adapter

1 file changed

+1
-1
lines changed

hdb/Development/Debug/Adapter/Init.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ initDebugger l LaunchArgs{__sessionId, projectRoot, entryFile = entryFile, entry
128128
-- read from until we read an EOF.
129129
(readDebuggerOutput, writeDebuggerOutput) <- liftIO P.createPipe
130130
liftIO $ do
131-
hSetBuffering readDebuggerOutput NoBuffering
131+
hSetBuffering readDebuggerOutput LineBuffering
132132
hSetBuffering writeDebuggerOutput NoBuffering
133133
-- GHC output uses utf8
134134
hSetEncoding readDebuggerOutput utf8

0 commit comments

Comments
 (0)