[project @ 2003-08-11 13:18:22 by ross]
authorross <unknown>
Mon, 11 Aug 2003 13:18:22 +0000 (13:18 +0000)
committerross <unknown>
Mon, 11 Aug 2003 13:18:22 +0000 (13:18 +0000)
expose unsafeInterleaveIO to Hugs

System/IO/Unsafe.hs

index 98dfe2b..e794ab1 100644 (file)
@@ -20,16 +20,18 @@ module System.IO.Unsafe (
   ) where
 
 #ifdef __GLASGOW_HASKELL__
-import GHC.IOBase
+import GHC.IOBase (unsafePerformIO, unsafeInterleaveIO)
 #endif
 
 #ifdef __HUGS__
-import Hugs.IOExts
+import Hugs.IOExts (unsafePerformIO)
 #endif
 
 #ifdef __NHC__
 import NHC.Internal (unsafePerformIO)
+#endif
 
+#ifndef __GLASGOW_HASKELL__
 unsafeInterleaveIO :: IO a -> IO a
-unsafeInterleaveIO f = let x = unsafePerformIO f in return x
+unsafeInterleaveIO f = return (unsafePerformIO f)
 #endif