They aren't identical.
runST guarantees to run a complete state thread that can't interact
with any other. stToIO runs some imperative actions that might
interact with other stToIO calls.
You might find it helpful to read 'State in Haskell' if you havn't
already done so.
Simon
|
I can't seem to figure out what the difference is between using
evaluate (runST action)
and
stToIO action
when in the IO monad and running something in ST...they seem to behave
identically...are they?
If they are, why do they have different type signatures (one is ST