[Haskell-cafe] How to flush with IterIO in echo server

2011-06-29 Thread John Ky
Hi Haskell Cafe, I've written an echo server using just sockets: import Control.Concurrent import Control.Exception import Control.Monad import Network import Offsync.Data import System.IO import System.IO.Error (isEOFError) main = withSocketsDo $ do sListen - listenOn (PortNumber 8000)

Re: [Haskell-cafe] How to flush with IterIO in echo server

2011-06-29 Thread dm-list-haskell-cafe
At Wed, 29 Jun 2011 21:13:47 +1000, John Ky wrote: Hi Haskell Cafe, I've written an echo server using just sockets: ... When I send text to it, it will echo it back immediately after my newline. I then modified it to user IterIO: import Control.Concurrent import