[Haskell-cafe] question about STM and IO

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Feb 20 16:14:44 EST 2008


Hello John,

Tuesday, February 12, 2008, 9:28:22 PM, you wrote:
> I was recently looking at the STM library, and I have a question about
> the function "unsafeIOToSTM".  Can anyone explain to me what is unsafe
> about it, and what sort of use would be considered "safe"?

STM operations can be repeated if first transaction was unsuccessful.
so, you may se here only operations that may be safely repeated - say,
reading/writing memory areas, or reading/writing files, or even
sending network message as long as its duplication is ok

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list