unsafeIOToST

Simon Marlow simonmar at microsoft.com
Thu Jul 5 09:03:20 EDT 2001


> The unsafeIOToST definition in the ghc-5.00.2 libs doesn't appear to
> achieve the following,
> 
> unsafeIOToST :: IO a -> ST s a
> unsafeIOToST (IO io) = ST $ \ s -> (unsafeCoerce# io) s

unsafeIOToST is broken in ghc-5.00.2.  It'll be fixed in 5.02.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list