tryTakeMVar fails

Simon Marlow simonmar at microsoft.com
Fri Jan 25 07:30:45 EST 2002


> This program crashes on ghc 5.02, on my RH7.1
> 
> module Main where
> 
> import MVar
> 
> main = 
>  do { mVar <- newMVar True
>     ; tryTakeMVar mVar
>     ; return ()
>     }

Darn.  tryTakeMVar is busted in 5.02 I'm afraid.  I've just fixed it in
the HEAD, maybe 5.02.3 will have it fixed if we do another release along
that branch.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list