X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FIO%2FUnsafe.hs;h=3ef3d9f3e0b6f8486a75086d1a486624fa42f1ed;hb=41e8fba828acbae1751628af50849f5352b27873;hp=e794ab154c04b8615508a90a6cdc8ff0804135fa;hpb=2f5c5cb018f20e5782f2a67a59dfd856dc19b1a7;p=ghc-base.git diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index e794ab1..3ef3d9f 100644 --- a/System/IO/Unsafe.hs +++ b/System/IO/Unsafe.hs @@ -1,4 +1,5 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} + ----------------------------------------------------------------------------- -- | -- Module : System.IO.Unsafe @@ -14,24 +15,20 @@ ----------------------------------------------------------------------------- module System.IO.Unsafe ( - -- * Unsafe 'IO' operations - unsafePerformIO, -- :: IO a -> a - unsafeInterleaveIO, -- :: IO a -> IO a + -- * Unsafe 'System.IO.IO' operations + unsafePerformIO, -- :: IO a -> a + unsafeInterleaveIO, -- :: IO a -> IO a ) where #ifdef __GLASGOW_HASKELL__ -import GHC.IOBase (unsafePerformIO, unsafeInterleaveIO) +import GHC.IO (unsafePerformIO, unsafeInterleaveIO) #endif #ifdef __HUGS__ -import Hugs.IOExts (unsafePerformIO) +import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO) #endif #ifdef __NHC__ -import NHC.Internal (unsafePerformIO) +import NHC.Internal (unsafePerformIO, unsafeInterleaveIO) #endif -#ifndef __GLASGOW_HASKELL__ -unsafeInterleaveIO :: IO a -> IO a -unsafeInterleaveIO f = return (unsafePerformIO f) -#endif