Re: Optimisation and unsafePerformIO

2002-10-28 Thread David Sabel
Of course, I used unsafePerformIO in an unsafe way! I'm thinking about a way to make unsafePerformIO safe. Therefore the compiler can't do any transformation the ghc does and I want to locate these transformations. - Original Message - From: "Simon Marlow" <[EMAIL PROTECTED]> To: "David S

RE: Optimisation and unsafePerformIO

2002-10-28 Thread Simon Marlow
> Consider the following program: > > - > {-# NOINLINE b #-} > > b x = if even x then unsafePerformIO getChar else bot > > bot = bot > > main = do > putChar (b 4) > putChar (b 6) > > - > > when you compile the prog