[Haskell-cafe] stm onCommit

Ryan Yates fryguybob at gmail.com
Mon Jul 6 12:34:43 UTC 2015


Right, it looks like the atomically is inside unsafePerformIO, but it is in
the fork.  This is part of why it is better to avoid the unsafePerformIO
here.  Anything it buys is at great cost to clarity.

On Mon, Jul 6, 2015 at 7:55 AM, Silvio Frischknecht <
silvio.frischi at gmail.com> wrote:

> > You can't use atomically inside unsafePerformIO.
>
> It's not really inside unsafePerformIO. It's in a separate thread
> spawned by unsafePerformIO. Anyway, it seems to work correctly.
>
> Silvio
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150706/b0b34439/attachment.html>


More information about the Haskell-Cafe mailing list