DiffArray Performance

MR K P SCHUPKE k.schupke at imperial.ac.uk
Thu Nov 6 18:11:58 EST 2003


>This is one good reason they have to be protected by MVars

Forgive my stupidity, but arn't the MVar operations (takeMVar, putMVar)
IO operation, therefore the locks must be in the IO monad, therefore
the code acting on the DiffArray should be in the IO monad... otherwise
they can't use the MVar calls? 

	Regards,
	Keean Schupke.


More information about the Glasgow-haskell-users mailing list