From: Malcolm.Wallace@cs.york.ac.uk Date: Thu, 4 Feb 2010 17:10:21 +0000 (+0000) Subject: For nhc98, import unsafeInterleaveIO rather than defining it here. X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0a27f82404c07a5c946dcc1ebd6c1a2f6491ec77;hp=4c311d7ac89f786fa444517911ab7bd13be0fa4b;p=ghc-base.git For nhc98, import unsafeInterleaveIO rather than defining it here. --- 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