File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
module Main (main ) where
4
4
5
5
import Network.JsonRpc.Server
6
+ import System.IO (BufferMode (LineBuffering ), hSetBuffering , stdout )
6
7
import qualified Data.ByteString.Lazy.Char8 as B
7
8
import Data.List (intercalate )
8
9
import Data.Maybe (fromMaybe )
@@ -12,8 +13,8 @@ import Control.Monad.Error (throwError)
12
13
import Control.Monad.Reader (ReaderT , ask , runReaderT )
13
14
import Control.Concurrent.MVar (MVar , newMVar , modifyMVar )
14
15
15
- main :: IO ()
16
16
main = do
17
+ hSetBuffering stdout LineBuffering
17
18
contents <- B. getContents
18
19
count <- newMVar 0
19
20
forM_ (B. lines contents) $ \ request -> do
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ executable demo
48
48
json-rpc-server,
49
49
bytestring >= 0.9 && < 0.11 ,
50
50
mtl >= 1.1.1 && < 2.3
51
- ghc-options : -Wall
52
51
else
53
52
buildable : False
54
53
You can’t perform that action at this time.
0 commit comments