<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 7:55 AM, Silvio Frischknecht <span dir="ltr"><<a href="mailto:silvio.frischi@gmail.com" target="_blank">silvio.frischi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> You can't use atomically inside unsafePerformIO.<br>
<br>
</span>It's not really inside unsafePerformIO. It's in a separate thread<br>
spawned by unsafePerformIO. Anyway, it seems to work correctly.<br>
<span class="HOEnZb"><font color="#888888"><br>
Silvio<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>