On 10/15/07, ChrisK <[EMAIL PROTECTED]> wrote: > Also you need to get you hand on State# RealWorld either > (1) Honestly, by wrapping your code in IO again and using it normally > (2) From a copy, via unsafeInterleaveIO > (3) From nowhere, via unsafePerformIO
Or you can get it honestly via lifting: liftRawIO :: (State# RealWorld -> (# State# RealWorld, a #)) -> IO a liftRawIO = GHC.IOBase.IO main = liftRawIO rawMain rawMain :: State# RealWorld-> (# State# RealWorld, () #) {- implement rawMain here -} -- ryan _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe