Re: [Haskell-cafe] Cannot System,Timeout.timeout Network.accept

2012-06-21 Thread Daniel Hlynskyi
Tried > ghc test.lhs -threaded Problem was not solved. Maybe I am compiling incorrectly (I used ghci only)? Btw, thanks for ticket No. Maybe I will reopen it later. 2012/6/21 Johan Tibell > Some functions in the network package are: > >"NOTE: blocking on Windows unless you compile with -th

Re: [Haskell-cafe] Cannot System,Timeout.timeout Network.accept

2012-06-21 Thread Johan Tibell
Some functions in the network package are: "NOTE: blocking on Windows unless you compile with -threaded (see GHC ticket #1129)" This note does appear next to 'accept', but could you try to compile with -threaded and see if that makes a difference? -- Johan __

[Haskell-cafe] Cannot System,Timeout.timeout Network.accept

2012-06-21 Thread Daniel Hlynskyi
Hello Cafe. I cannot accept socket connection with timeout (Windows, GHC 7.4,1). Consider following code: > import Network > import System.Timeout > main = withSocketsDo $ do > print ":: Starting server ..." > sock <- listenOn (PortNumber 4010) > res <- timeout 1 (accept sock) > p