Hello Roman, Monday, February 4, 2008, 4:18:43 AM, you wrote: > True, but that is a very obfuscated way of doing this. If the handle is > not modified destructively, then there is no need for withLocking etc. > to be monadic. withLocking = fmap WithLocking newMVar -- Best regards, Bulat mailto:Bulat.Ziganshin at gmail.com