RE: bug in dupChan

2001-01-30 Thread Simon Peyton-Jones
wed-by-put. I think you mis-read the "readMVar write" as "takeMVar write". Nevertheless, there is a bug in dupChan, but it's in the code for readChan, where "takeMVar read_end" should be "readMVar read_end". As you'll have se

bug in dupChan

2001-01-24 Thread Meurig Sage
Hi I think that there's a bug in dupChan in Chan.lhs   I tried the following program.  main = do chan <- newChan ch <- dupChan chan writeChan chan "done" x <- readChan chan y <- readChan ch prnt ("Got "++x ++" "++y)   Now if I remem