> is there a way in Hugs to convert a state transformer into a IO
> computation?  In GHC "IO a" is (or perhaps used to be) defined as 
> "ST RealWorld a", so you can use state transformers in the IO monad.

I don't think that works with GHC anymore.  But this (untested) code ought
to do the trick

  stToIO :: ST s a -> IO a
  stToIO m = return (runST m)

in most cases...

Alastair


Reply via email to