[Haskell-cafe] stm onCommit
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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe