[Haskell-cafe] Relaxing atomicity of STM transactions

Felipe Lessa felipe.lessa at gmail.com
Tue Sep 28 10:05:37 EDT 2010


On Tue, Sep 28, 2010 at 11:01 AM, Antoine Latter <aslatter at gmail.com> wrote:
> Isn't there an 'unsafeIOToSTM' function somewhere? Something like:
>
>> unsafeIOToSTM (IO k) = STM k
>
> Then you might not need the case statement.

I thought there was, but I couldn't find it in the 'stm' package [1],
using Hoogle [2] nor using Hayoo [3].

[1] http://hackage.haskell.org/package/stm
[2] http://haskell.org/hoogle/?hoogle=IO+a+-%3E+STM+a
[3] http://holumbus.fh-wedel.de/hayoo/hayoo.html#0:stmtoio

-- 
Felipe.


More information about the Haskell-Cafe mailing list