Simon Marlow wrote:
The only way I can see to do this is to add a lock field to the MVar. And
since this lock would look very much like another MVar, you may as well just
use another MVar to lock it (after all, that adds exactly zero extra
complication to the system :-).
Absolutely.
There's
Simon Marlow writes ("RE: ghc with shared libraries ?"):
Still can't be done, I'm afraid. At least for Haskell libraries; you could
compile parts of the RTS and libHS_cbits shared, but we haven't done that.
This message has more details: