[Haskell-cafe] Top-level TVars
Joel Reymont
joelr1 at gmail.com
Tue Dec 13 13:08:23 EST 2005
Can this be done now or is this a GHC 6.5 feature?
My combination of unsafePerformIO with atomically $ newTVar does not
seem to be working.
Thanks, Joel
P.S. What is the ETA for 6.5?
On Mon, Dec 05, 2005 at 10:50:13AM -0000, Simon Peyton-Jones wrote:
>
> It turns out to be easy to provide
>
> newTVarIO :: a -> IO (TVar a)
>
> which you can call from inside 'unsafePerformIO'. That means you can
> allocate top-level TVars without fuss.
>
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list