X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FIO%2FUnsafe.hs;h=3ef3d9f3e0b6f8486a75086d1a486624fa42f1ed;hb=HEAD;hp=b86fedde39ff4e9ba77ddb1026d8e6c07bb74daf;hpb=9812e0a321ec0ed8f9e53eb2febfb14c79564200;p=ghc-base.git diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index b86fedd..3ef3d9f 100644 --- a/System/IO/Unsafe.hs +++ b/System/IO/Unsafe.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE CPP, NoImplicitPrelude #-} + ----------------------------------------------------------------------------- -- | -- Module : System.IO.Unsafe @@ -13,17 +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 -import Prelude - #ifdef __GLASGOW_HASKELL__ -import GHC.IOBase +import GHC.IO (unsafePerformIO, unsafeInterleaveIO) #endif #ifdef __HUGS__ -import Hugs.IOExts +import Hugs.IOExts (unsafePerformIO, unsafeInterleaveIO) #endif + +#ifdef __NHC__ +import NHC.Internal (unsafePerformIO, unsafeInterleaveIO) +#endif +