X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FIO%2FUnsafe.hs;h=3ef3d9f3e0b6f8486a75086d1a486624fa42f1ed;hb=41e8fba828acbae1751628af50849f5352b27873;hp=1ec5361d8e3ab4a4d1fcb3f5176503aff597cf57;hpb=b0d7669aabbf16dce9739dc5ce9e5f03640c798e;p=ghc-base.git diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index 1ec5361..3ef3d9f 100644 --- a/System/IO/Unsafe.hs +++ b/System/IO/Unsafe.hs @@ -1,4 +1,5 @@ -{-# OPTIONS_GHC -fno-implicit-prelude #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} + ----------------------------------------------------------------------------- -- | -- Module : System.IO.Unsafe @@ -15,12 +16,12 @@ module System.IO.Unsafe ( -- * Unsafe 'System.IO.IO' operations - unsafePerformIO, -- :: IO a -> a - unsafeInterleaveIO, -- :: IO a -> IO a + 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__ @@ -28,10 +29,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