Alastair Reid writes:
> > 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.  
>

Yes it does, GlaExts exports the following two

  stToIO :: ST RealWorld a -> IO a
  ioToST :: IO a -> ST RealWorld a

--Sigbjorn

Reply via email to