[Haskell-cafe] STM, newArray, and a stack overflow?

Bas van Dijk v.dijk.bas at gmail.com
Thu Mar 24 01:25:15 CET 2011

On 24 March 2011 01:22, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> The given IO computation can then be something like: unsafeIOToSTM $ newTVar e.

Oops I meant: unsafeSTMToIO $ newTVar e


unsafeSTMToIO :: STM a -> IO a
unsafeSTMToIO (STM m) = IO m

More information about the Haskell-Cafe mailing list