Hi, all.Haskell's lazy IO causes below program towrite back "ECHO result" to the usereven if he doesn't give any input to the program.test1 :: IO ()test1 = dol <- fmap lines getContentsputStrLn "ECHO result"putStr $ unlines lIf the client logic, that is the part for feeding data to this programand wait for the response, expect the server logic to respondonly after all the client's request data are feed to the server logic,the behaviour could be problematic.I'm now writing simple web server, as you might guess, andmy web server responds "HTTP/1.1" before any client's requestare given. I'm using hGetContents and web server's logic isbasically same with above code skeleton.How can I tell the program to respond data only after all therequests are feed? Any directions are welcomed.Thanks.
Chul-Woong
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners