Help me grok addFinalizer

Michael Craig mkscrg at
Thu Feb 16 21:04:31 CET 2012

When I read the docs for System.Mem.Weak, it all seems to make sense. But
then this code doesn't run as I expect it to when I turn on -threaded: (Expected/actual output are listed in the paste.)

I've tried this on 7.4.1 and 7.0.4 with the same results. Can someone
enlighten me?

Mike Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Glasgow-haskell-users mailing list