I'm looking for a way to run two computations in parallel in the ST-Monad. I am building a rather large array (using STUArray) and I would like to do it in parallel.
So far I've found this and this Q&A here on stackoverflow, however the first does not apply in my case, as it deals with pure code only and the second deals with the IO monad - but I am in a State Thread.
I've also found the monad-parallel package, but it requires me to have an instance of 'MonadParallel' for ST. Also the monad-par package does support only pure computations or the IO monad.
Is there a way to do a parallel monadic computation inside ST ?