You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was just re-reading your excellent book and came across this warning:
There is nothing in the types to stop you from returning an IVar from runPar and
passing it to another call of runPar. This is a Very Bad Idea; don’t do it. The
implementation of the Par monad assumes that IVars are created and used
within the same runPar, and breaking this assumption could lead to a runtime
error, deadlock, or worse.
The library could prevent you from doing this using qualified types in the same
way that the ST monad prevents you from returning an STRef from runST. This
is planned for a future version.
Just curious, is this still meant to happen at some point?
The text was updated successfully, but these errors were encountered:
I'm not actively working on monad-par, so I doubt this will happen, unless someone else really wants to work on it. It would be a big breaking change for existing users, which could be a problem. I think I was also worried about the extra type clutter this would cause, for limited benefit, but I probably wouldn't object very strongly if someone else were doing the work to push this through.
Hi, I was just re-reading your excellent book and came across this warning:
Just curious, is this still meant to happen at some point?
The text was updated successfully, but these errors were encountered: