Skip to content

Commit aa4ab4b

Browse files
committed
[cli] fix: force line buffering in anti-oracle executable
1 parent 232eb88 commit aa4ab4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/app/anti-oracle.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import Oracle.Process (oracleProcess, parseArgs)
2+
import System.IO (BufferMode (..), hSetBuffering, stdin, stdout)
23

34
main :: IO ()
4-
main = parseArgs >>= oracleProcess
5+
main = do
6+
hSetBuffering stdin LineBuffering
7+
hSetBuffering stdout LineBuffering
8+
args <- parseArgs
9+
oracleProcess args

0 commit comments

Comments
 (0)