From: ross Date: Mon, 11 Aug 2003 13:18:22 +0000 (+0000) Subject: [project @ 2003-08-11 13:18:22 by ross] X-Git-Tag: nhc98-1-18-release~542 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2f5c5cb018f20e5782f2a67a59dfd856dc19b1a7;p=ghc-base.git [project @ 2003-08-11 13:18:22 by ross] expose unsafeInterleaveIO to Hugs --- diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index 98dfe2b..e794ab1 100644 --- a/System/IO/Unsafe.hs +++ b/System/IO/Unsafe.hs @@ -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