tryTakeMVar :: MVar a -> IO (Maybe a)

2000-04-08 Thread Marcin 'Qrczak' Kowalczyk
Wouldn't be nice to have such function? I wanted to translate a thread example written in Ruby and realized that it's impossible to write that function using MVar primitives provided; and no module seems to provide an equivalent using another kind of concurrent variable. I had to simulate mutexes

Re: [dongen@cs.ucc.ie: Re: Debugging techniques]

2000-04-08 Thread 'Marc van Dongen'
Simon Peyton Jones ([EMAIL PROTECTED]) wrote: : | This is really a big problem. I have been strugling with it : | myself. The safest thing to do is to use `error' (sad but : | true). That's the only thing I can recommend:-( : : This is a long-standing and embarassing bug which is : alas not quic