RE: difference between (evaluate . runST) and stToIO

2002-08-28 Thread Simon Peyton-Jones
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 |

RE: difference between (evaluate . runST) and stToIO

2002-08-13 Thread Simon Marlow
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