Re: [Haskell-cafe] Re: [Haskell] Re: SimonPJ and Tim Harris explain STM - video

2006-11-23 Thread Liyang HU
Hallo, On 24/11/06, Benjamin Franksen <[EMAIL PROTECTED]> wrote: > So, you could simply return the console output as (part of) the result > of the atomic action. Wrap it in a WriterT monad transformer, even. But this would break atomicity, wouldn't it? In the sense as you just described, yes.

[Haskell-cafe] Re: [Haskell] Re: SimonPJ and Tim Harris explain STM - video

2006-11-23 Thread Benjamin Franksen
Hi Liyang HU you wrote: > On 23/11/06, Benjamin Franksen <[EMAIL PROTECTED]> wrote: >> One answer is in fact "to make it so that Console.Write can be rolled >> back too". To achieve this one can factor the actual output to another >> task and inside the transaction merely send the message to a >>