> 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
- Re: ST s a -> IO a ??? Alastair Reid
- Re: ST s a -> IO a ??? Sigbjorn Finne