From 0a27f82404c07a5c946dcc1ebd6c1a2f6491ec77 Mon Sep 17 00:00:00 2001 From: "Malcolm.Wallace@cs.york.ac.uk" Date: Thu, 4 Feb 2010 17:10:21 +0000 Subject: [PATCH 1/1] For nhc98, import unsafeInterleaveIO rather than defining it here. --- System/IO/Unsafe.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index 3a3e7f6..05f2c7b 100644 --- a/System/IO/Unsafe.hs +++ b/System/IO/Unsafe.hs @@ -28,10 +28,6 @@ import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO) #endif #ifdef __NHC__ -import NHC.Internal (unsafePerformIO) +import NHC.Internal (unsafePerformIO, unsafeInterleaveIO) #endif -#if !__GLASGOW_HASKELL__ && !__HUGS__ -unsafeInterleaveIO :: IO a -> IO a -unsafeInterleaveIO f = return (unsafePerformIO f) -#endif -- 1.7.10.4