diff options
-rw-r--r-- | compiler/basicTypes/UniqSupply.lhs | 2 | ||||
-rw-r--r-- | compiler/ghc.cabal.in | 1 | ||||
-rw-r--r-- | compiler/ghci/ByteCodeItbls.lhs | 2 | ||||
-rw-r--r-- | compiler/ghci/ByteCodeLink.lhs | 2 | ||||
-rw-r--r-- | compiler/ghci/RtClosureInspect.hs | 4 | ||||
-rw-r--r-- | compiler/main/BreakArray.hs | 2 | ||||
-rw-r--r-- | compiler/prelude/PrelNames.lhs | 8 | ||||
-rw-r--r-- | compiler/utils/Binary.hs | 2 | ||||
-rw-r--r-- | compiler/utils/Encoding.hs | 6 | ||||
-rw-r--r-- | compiler/utils/FastFunctions.lhs | 2 | ||||
-rw-r--r-- | compiler/utils/FastMutInt.lhs | 5 | ||||
-rw-r--r-- | compiler/utils/FastString.lhs | 5 | ||||
-rw-r--r-- | compiler/utils/GhcIO.hs | 24 | ||||
-rw-r--r-- | compiler/utils/Pretty.lhs | 6 | ||||
-rw-r--r-- | rts/Prelude.h | 28 |
15 files changed, 30 insertions, 69 deletions
diff --git a/compiler/basicTypes/UniqSupply.lhs b/compiler/basicTypes/UniqSupply.lhs index 4e1de6ad47..f34172f7b2 100644 --- a/compiler/basicTypes/UniqSupply.lhs +++ b/compiler/basicTypes/UniqSupply.lhs @@ -29,7 +29,7 @@ module UniqSupply ( import Unique import FastTypes -import GhcIO (unsafeDupableInterleaveIO) +import GHC.IO (unsafeDupableInterleaveIO) import MonadUtils import Control.Monad diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in index 7fffe83be2..2711c1b20e 100644 --- a/compiler/ghc.cabal.in +++ b/compiler/ghc.cabal.in @@ -435,7 +435,6 @@ Library FastTypes Fingerprint FiniteMap - GhcIO GraphBase GraphColor GraphOps diff --git a/compiler/ghci/ByteCodeItbls.lhs b/compiler/ghci/ByteCodeItbls.lhs index 4ff9e0a2b7..943c9e9992 100644 --- a/compiler/ghci/ByteCodeItbls.lhs +++ b/compiler/ghci/ByteCodeItbls.lhs @@ -36,7 +36,7 @@ import Foreign.C.String import Data.Bits ( Bits(..), shiftR ) import GHC.Exts ( Int(I#), addr2Int# ) -import GHC.Ptr.Unsafe ( Ptr(..) ) +import GHC.Ptr ( Ptr(..) ) import Debug.Trace import Text.Printf diff --git a/compiler/ghci/ByteCodeLink.lhs b/compiler/ghci/ByteCodeLink.lhs index 7fdc2744f4..d4ddcc4ba2 100644 --- a/compiler/ghci/ByteCodeLink.lhs +++ b/compiler/ghci/ByteCodeLink.lhs @@ -44,7 +44,7 @@ import Data.Array.Base import Control.Monad ( zipWithM ) import Control.Monad.ST ( stToIO ) -import GHC.Arr.Unsafe ( Array(..), STArray(..) ) +import GHC.Arr ( Array(..), STArray(..) ) import GHC.Base ( writeArray#, RealWorld, Int(..), Word# ) import GHC.IOBase ( IO(..) ) import GHC.Exts diff --git a/compiler/ghci/RtClosureInspect.hs b/compiler/ghci/RtClosureInspect.hs index 358c7e63c3..97485281e1 100644 --- a/compiler/ghci/RtClosureInspect.hs +++ b/compiler/ghci/RtClosureInspect.hs @@ -53,9 +53,9 @@ import DynFlags import Outputable as Ppr import FastString import Constants ( wORD_SIZE ) -import GHC.Arr.Unsafe ( Array(..) ) +import GHC.Arr ( Array(..) ) import GHC.Exts -import GhcIO ( IO(..) ) +import GHC.IO ( IO(..) ) import StaticFlags( opt_PprStyle_Debug ) import Control.Monad diff --git a/compiler/main/BreakArray.hs b/compiler/main/BreakArray.hs index 29d7d77439..4d2c07bba9 100644 --- a/compiler/main/BreakArray.hs +++ b/compiler/main/BreakArray.hs @@ -26,7 +26,7 @@ module BreakArray ) where #ifdef GHCI import GHC.Exts -import GhcIO ( IO(..) ) +import GHC.IO ( IO(..) ) import Constants data BreakArray = BA (MutableByteArray# RealWorld) diff --git a/compiler/prelude/PrelNames.lhs b/compiler/prelude/PrelNames.lhs index 92240515e1..4fd23ee712 100644 --- a/compiler/prelude/PrelNames.lhs +++ b/compiler/prelude/PrelNames.lhs @@ -313,10 +313,10 @@ dATA_TRAVERSABLE= mkBaseModule (fsLit "Data.Traversable") gHC_CONC = mkBaseModule (fsLit "GHC.Conc") gHC_IO = mkBaseModule (fsLit "GHC.IO") gHC_IO_Exception = mkBaseModule (fsLit "GHC.IO.Exception") -gHC_ST = mkBaseModule (fsLit "GHC.ST.Imp") -gHC_ARR = mkBaseModule (fsLit "GHC.Arr.Imp") -gHC_STABLE = mkBaseModule (fsLit "GHC.Stable.Imp") -gHC_PTR = mkBaseModule (fsLit "GHC.Ptr.Imp") +gHC_ST = mkBaseModule (fsLit "GHC.ST") +gHC_ARR = mkBaseModule (fsLit "GHC.Arr") +gHC_STABLE = mkBaseModule (fsLit "GHC.Stable") +gHC_PTR = mkBaseModule (fsLit "GHC.Ptr") gHC_ERR = mkBaseModule (fsLit "GHC.Err") gHC_REAL = mkBaseModule (fsLit "GHC.Real") gHC_FLOAT = mkBaseModule (fsLit "GHC.Float") diff --git a/compiler/utils/Binary.hs b/compiler/utils/Binary.hs index 80e9171aa4..c5a2c8f4fd 100644 --- a/compiler/utils/Binary.hs +++ b/compiler/utils/Binary.hs @@ -82,7 +82,7 @@ import GHC.Real ( Ratio(..) ) import GHC.Exts import GHC.Word ( Word8(..) ) -import GhcIO ( IO(..) ) +import GHC.IO ( IO(..) ) type BinArray = ForeignPtr Word8 diff --git a/compiler/utils/Encoding.hs b/compiler/utils/Encoding.hs index 4351538702..6467377a1a 100644 --- a/compiler/utils/Encoding.hs +++ b/compiler/utils/Encoding.hs @@ -32,11 +32,7 @@ module Encoding ( import Foreign import Data.Char import Numeric -#if __GLASGOW_HASKELL__ >= 701 -import GHC.Ptr.Unsafe ( Ptr(..) ) -#else -import GHC.Ptr ( Ptr(..) ) -#endif +import GHC.Ptr ( Ptr(..) ) import GHC.Base -- ----------------------------------------------------------------------------- diff --git a/compiler/utils/FastFunctions.lhs b/compiler/utils/FastFunctions.lhs index 0734240287..b1dacdcd9b 100644 --- a/compiler/utils/FastFunctions.lhs +++ b/compiler/utils/FastFunctions.lhs @@ -24,7 +24,7 @@ import GHC.Exts import GHC.Word import GHC.Base (unsafeChr) -import GhcIO (IO(..), unsafeDupableInterleaveIO) +import GHC.IO (IO(..), unsafeDupableInterleaveIO) -- Just like unsafePerformIO, but we inline it. {-# INLINE inlinePerformIO #-} diff --git a/compiler/utils/FastMutInt.lhs b/compiler/utils/FastMutInt.lhs index 3a18a13501..26183071f1 100644 --- a/compiler/utils/FastMutInt.lhs +++ b/compiler/utils/FastMutInt.lhs @@ -26,12 +26,7 @@ module FastMutInt( #endif import GHC.Base -#if __GLASGOW_HASKELL__ >= 701 -import GHC.Ptr.Safe -import GHC.Ptr.Unsafe -#else import GHC.Ptr -#endif #else /* ! __GLASGOW_HASKELL__ */ diff --git a/compiler/utils/FastString.lhs b/compiler/utils/FastString.lhs index b1449edae2..35d4387dd3 100644 --- a/compiler/utils/FastString.lhs +++ b/compiler/utils/FastString.lhs @@ -105,14 +105,13 @@ import Data.IORef ( IORef, newIORef, readIORef, writeIORef ) import Data.Maybe ( isJust ) import Data.Char ( ord ) -import GhcIO ( IO(..) ) +import GHC.IO ( IO(..) ) +import GHC.Ptr ( Ptr(..) ) #if __GLASGOW_HASKELL__ >= 701 import Foreign.Safe -import GHC.Ptr.Unsafe ( Ptr(..) ) #else import Foreign hiding ( unsafePerformIO ) -import GHC.Ptr ( Ptr(..) ) #endif #if defined(__GLASGOW_HASKELL__) diff --git a/compiler/utils/GhcIO.hs b/compiler/utils/GhcIO.hs deleted file mode 100644 index 17198de071..0000000000 --- a/compiler/utils/GhcIO.hs +++ /dev/null @@ -1,24 +0,0 @@ - --- | A simple version compatability wrapper around GHC.IO. --- --- This module exports both the safe and Unsafe version of GHC.IO --- taking care of the SafeHaskell changeover which spit up the --- old GHC.IO module. --- -module GhcIO ( -#if __GLASGOW_HASKELL__ >= 701 - module GHC.IO.Safe, - module GHC.IO.Unsafe -#else - module GHC.IO -#endif - ) where - -#if __GLASGOW_HASKELL__ >= 701 -import GHC.IO.Safe -import GHC.IO.Unsafe -#else -import GHC.IO -#endif - - diff --git a/compiler/utils/Pretty.lhs b/compiler/utils/Pretty.lhs index 7b2702d471..0493daabee 100644 --- a/compiler/utils/Pretty.lhs +++ b/compiler/utils/Pretty.lhs @@ -193,11 +193,7 @@ import System.IO --for a RULES import GHC.Base ( unpackCString# ) import GHC.Exts ( Int# ) -#if __GLASGOW_HASKELL__ >= 701 -import GHC.Ptr.Unsafe ( Ptr(..) ) -#else -import GHC.Ptr ( Ptr(..) ) -#endif +import GHC.Ptr ( Ptr(..) ) #endif -- Don't import Util( assertPanic ) because it makes a loop in the module structure diff --git a/rts/Prelude.h b/rts/Prelude.h index e32980e0d0..86bb6099fb 100644 --- a/rts/Prelude.h +++ b/rts/Prelude.h @@ -43,7 +43,7 @@ PRELUDE_CLOSURE(base_GHCziIOziException_blockedIndefinitelyOnSTM_closure); PRELUDE_CLOSURE(base_ControlziExceptionziBase_nonTermination_closure); PRELUDE_CLOSURE(base_ControlziExceptionziBase_nestedAtomically_closure); -PRELUDE_CLOSURE(base_GHCziConcziSyncziImp_runSparks_closure); +PRELUDE_CLOSURE(base_GHCziConcziSync_runSparks_closure); PRELUDE_CLOSURE(base_GHCziConcziIO_ensureIOManagerIsRunning_closure); PRELUDE_CLOSURE(base_GHCziConcziSignal_runHandlers_closure); @@ -52,8 +52,8 @@ PRELUDE_INFO(ghczmprim_GHCziTypes_Izh_static_info); PRELUDE_INFO(ghczmprim_GHCziTypes_Fzh_static_info); PRELUDE_INFO(ghczmprim_GHCziTypes_Dzh_static_info); PRELUDE_INFO(base_Addr_Azh_static_info); -PRELUDE_INFO(base_GHCziPtrziImp_Ptr_static_info); -PRELUDE_INFO(base_GHCziPtrziImp_FunPtr_static_info); +PRELUDE_INFO(base_GHCziPtr_Ptr_static_info); +PRELUDE_INFO(base_GHCziPtr_FunPtr_static_info); PRELUDE_INFO(base_GHCziInt_I8zh_static_info); PRELUDE_INFO(base_GHCziInt_I16zh_static_info); PRELUDE_INFO(base_GHCziInt_I32zh_static_info); @@ -67,8 +67,8 @@ PRELUDE_INFO(ghczmprim_GHCziTypes_Czh_con_info); PRELUDE_INFO(ghczmprim_GHCziTypes_Izh_con_info); PRELUDE_INFO(ghczmprim_GHCziTypes_Fzh_con_info); PRELUDE_INFO(ghczmprim_GHCziTypes_Dzh_con_info); -PRELUDE_INFO(base_GHCziPtrziImp_Ptr_con_info); -PRELUDE_INFO(base_GHCziPtrziImp_FunPtr_con_info); +PRELUDE_INFO(base_GHCziPtr_Ptr_con_info); +PRELUDE_INFO(base_GHCziPtr_FunPtr_con_info); PRELUDE_INFO(base_Addr_Azh_con_info); PRELUDE_INFO(base_GHCziWord_Wzh_con_info); PRELUDE_INFO(base_GHCziInt_I8zh_con_info); @@ -79,8 +79,8 @@ PRELUDE_INFO(base_GHCziWord_W8zh_con_info); PRELUDE_INFO(base_GHCziWord_W16zh_con_info); PRELUDE_INFO(base_GHCziWord_W32zh_con_info); PRELUDE_INFO(base_GHCziWord_W64zh_con_info); -PRELUDE_INFO(base_GHCziStableziImp_StablePtr_static_info); -PRELUDE_INFO(base_GHCziStableziImp_StablePtr_con_info); +PRELUDE_INFO(base_GHCziStable_StablePtr_static_info); +PRELUDE_INFO(base_GHCziStable_StablePtr_con_info); #define True_closure DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_True_closure) #define False_closure DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_False_closure) @@ -88,7 +88,7 @@ PRELUDE_INFO(base_GHCziStableziImp_StablePtr_con_info); #define runFinalizerBatch_closure DLL_IMPORT_DATA_REF(base_GHCziWeak_runFinalizzerBatch_closure) #define mainIO_closure (&ZCMain_main_closure) -#define runSparks_closure DLL_IMPORT_DATA_REF(base_GHCziConcziSyncziImp_runSparks_closure) +#define runSparks_closure DLL_IMPORT_DATA_REF(base_GHCziConcziSync_runSparks_closure) #define ensureIOManagerIsRunning_closure DLL_IMPORT_DATA_REF(base_GHCziConcziIO_ensureIOManagerIsRunning_closure) #define runHandlers_closure DLL_IMPORT_DATA_REF(base_GHCziConcziSignal_runHandlers_closure) @@ -113,8 +113,8 @@ PRELUDE_INFO(base_GHCziStableziImp_StablePtr_con_info); #define W16zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W16zh_static_info) #define W32zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W32zh_static_info) #define W64zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W64zh_static_info) -#define Ptr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtrziImp_Ptr_static_info) -#define FunPtr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtrziImp_FunPtr_static_info) +#define Ptr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtr_Ptr_static_info) +#define FunPtr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtr_FunPtr_static_info) #define Czh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Czh_con_info) #define Izh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Izh_con_info) #define Fzh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Fzh_con_info) @@ -130,9 +130,9 @@ PRELUDE_INFO(base_GHCziStableziImp_StablePtr_con_info); #define I32zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I32zh_con_info) #define I64zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I64zh_con_info) #define I64zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I64zh_con_info) -#define Ptr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtrziImp_Ptr_con_info) -#define FunPtr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtrziImp_FunPtr_con_info) -#define StablePtr_static_info DLL_IMPORT_DATA_REF(base_GHCziStableziImp_StablePtr_static_info) -#define StablePtr_con_info DLL_IMPORT_DATA_REF(base_GHCziStableziImp_StablePtr_con_info) +#define Ptr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtr_Ptr_con_info) +#define FunPtr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtr_FunPtr_con_info) +#define StablePtr_static_info DLL_IMPORT_DATA_REF(base_GHCziStable_StablePtr_static_info) +#define StablePtr_con_info DLL_IMPORT_DATA_REF(base_GHCziStable_StablePtr_con_info) #endif /* PRELUDE_H */ |