diff options
author | Tom Smeding <tom@tomsmeding.com> | 2022-10-14 09:52:06 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2022-10-14 09:52:06 +0200 |
commit | a4636014ab24c810e491a5267042fd70e067c2c3 (patch) | |
tree | c21939bcd21472588bb6b2e9c896aa58be8ed71c /src/Main.hs | |
parent | 0bb8ae15a8ff487df00bc27db67ffa2e587f0eea (diff) |
Flush stdout
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs index 88a7259..9987b29 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -6,6 +6,7 @@ import Data.Text (Text) import qualified Data.Text as T import System.Environment (getArgs) import System.Exit (die) +import System.IO (hFlush, stdout) import Ghci import IRC @@ -29,6 +30,7 @@ mainIRC = do (\t -> T.take 2 t == T.pack "% ") (\recvmsg -> do putStrLn $ "Responding to " ++ T.unpack recvmsg + hFlush stdout ghci <- takeMVar ghcivar (ghci', msgs) <- runInGhci ghci (T.drop 2 recvmsg) putMVar ghcivar ghci' |