unsafeIOToST

Rahul Bhargava hul at progsoc.uts.edu.au
Thu Jul 5 08:11:10 EDT 2001


Hi,

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

Rahul





More information about the Glasgow-haskell-bugs mailing list