avoid Foreign.unsafePerformIO
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 9 Sep 2010 12:55:21 +0000 (12:55 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Thu, 9 Sep 2010 12:55:21 +0000 (12:55 +0000)
GHC/Conc/Sync.lhs
GHC/IO/Encoding/Iconv.hs
GHC/IO/Handle/Internals.hs
System/CPUTime.hsc

index 24178a0..cc16853 100644 (file)
@@ -75,7 +75,7 @@ module GHC.Conc.Sync
         , sharedCAF
         ) where
 
-import Foreign
+import Foreign hiding (unsafePerformIO)
 import Foreign.C
 
 #ifdef mingw32_HOST_OS
index fd35fc6..9a9e8c8 100644 (file)
@@ -30,7 +30,7 @@ module GHC.IO.Encoding.Iconv (
 
 #if !defined(mingw32_HOST_OS)
 
-import Foreign
+import Foreign hiding (unsafePerformIO)
 import Foreign.C
 import Data.Maybe
 import GHC.Base
@@ -39,6 +39,7 @@ import GHC.IO.Encoding.Types
 import GHC.Num
 import GHC.Show
 import GHC.Real
+import System.IO.Unsafe (unsafePerformIO)
 import System.Posix.Internals
 
 c_DEBUG_DUMP :: Bool
index 844c8c6..9271296 100644 (file)
@@ -70,7 +70,7 @@ import GHC.MVar
 import Data.Typeable
 import Control.Monad
 import Data.Maybe
-import Foreign
+import Foreign hiding (unsafePerformIO)
 -- import System.IO.Error
 import System.Posix.Internals hiding (FD)
 
index c2faa1c..5a7e696 100644 (file)
@@ -31,8 +31,9 @@ import CPUTime ( getCPUTime, cpuTimePrecision )
 #endif
 
 #ifdef __GLASGOW_HASKELL__
-import Foreign
+import Foreign hiding (unsafePerformIO)
 import Foreign.C
+import System.IO.Unsafe (unsafePerformIO)
 
 #include "HsBaseConfig.h"