I am not sure if you can't use them for some reason, but this sounds
like exactly the problem that stable pointers are meant to solve:

http://haskell.org/ghc/docs/latest/html/libraries/base/Foreign-StablePtr.html

        John
-- 
John Meacham - ⑆repetae.net⑆john⑈
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to