Re: IO concurrency

2001-10-17 Thread Max Kirillov
I didn't try ghc-5.02 since I haven't installed it yet. Could you do that? The IO library in 5.00.2 had a bug in fdToHandle which meant that it didn't put the file descriptor into non-blocking mode, and I suspect this is the cause of your problem. It works. Thank you. Max.

RE: IO concurrency

2001-10-15 Thread Simon Marlow
Playing with GHC, I met some oddity. Consider the example: import IO import Concurrent import Posix import PosixIO main = do (fdIn, fdIn_send) - createPipe hIn_send - fdToHandle fdIn_send hIn - fdToHandle fdIn -- The waiter is a simple tk/tcl script

Re: IO concurrency

2001-10-15 Thread Max Kirillov
On Mon, Oct 15, 2001 at 04:47:25PM +0100, Simon Marlow wrote: I tried this here on Linux/x86 with 5.02 and it seems to work fine. Instead of the tcl/tk script you mentioned I used a FIFO in /tmp/fifo and made the runProcess just call cat /tmp/fifo. Which GHC version and platform is this on?

Re: IO concurrency

2001-10-09 Thread Max A . K .
I forgot to say: that's ghc-5.00.1, linux. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users