[Haskell-cafe] IORefs and weak pointers

Patai Gergely patai_gergely at fastmail.fm
Mon Nov 2 13:10:21 EST 2009


> Is the IORef or the value in the IORef your key?
I want the IORef itself to be the key. However, that doesn't work with
optimisations turned on (the pointers get wiped out at the first gc), I
guess because they remove the box around the MutVar#. Extracting that
MutVar# seems to solve the problem.

Gergely

-- 
http://www.fastmail.fm - mmm... Fastmail...



More information about the Haskell-Cafe mailing list