[Haskell-cafe] stm onCommit

Ryan Yates fryguybob at gmail.com
Mon Jul 6 14:49:57 UTC 2015


Explicitly pass the TChan that handles on commit actions requiring
that it is initialized at some point prior.

On Mon, Jul 6, 2015 at 10:40 AM, Silvio Frischknecht
<silvio.frischi at gmail.com> wrote:
>
> > 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.
>
> How would you start the thread without using unsafePerformIO?


More information about the Haskell-Cafe mailing list