import CmdLineOpts ( DynFlags(..), getDynFlags )
import Maybes ( expectJust )
-import IOExts
+import DATA_IOREF ( readIORef )
#ifdef GHCI
import RdrName ( lookupRdrEnv )
import BasicTypes ( Fixity, defaultFixity )
import Interpreter ( HValue )
import HscMain ( hscStmt )
-import GlaExts ( unsafeCoerce# )
+import GHC.Exts ( unsafeCoerce# )
import Foreign
-import CForeign
-import Exception ( Exception, try )
+import Control.Exception as Exception ( Exception, try )
#endif
import EXCEPTION ( throwDyn )