X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FIO%2FUnsafe.hs;h=3ef3d9f3e0b6f8486a75086d1a486624fa42f1ed;hb=HEAD;hp=e72713c010185910853698c570858398e44071c6;hpb=594c7bf60e13e7a9083f935117a1d3e3c441b793;p=ghc-base.git diff --git a/System/IO/Unsafe.hs b/System/IO/Unsafe.hs index e72713c..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,23 +16,19 @@ 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__ -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