unsafeIOToST

2001-07-05 Thread Rahul Bhargava
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 ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http

RE: scope change

2001-07-05 Thread Simon Marlow
> I doubt how it is fixed because do not understand how do you treat > directories. > For any occasion, I add that the directories are > > D/export/ -- contains .hi files, .o, .a libraries > D/source/ -- contains Permut.hs and other modules > D/source/

Re: unsafeIOToST

2001-07-05 Thread Manuel M. T. Chakravarty
Rahul Bhargava <[EMAIL PROTECTED]> wrote, > 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 I have already changed that after Gabi told me about the problem

RE: unsafeIOToST

2001-07-05 Thread Simon Marlow
> 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