From: Pepe Iborra Date: Wed, 20 Dec 2006 04:24:17 +0000 (+0000) Subject: Fix import lists X-Git-Tag: 2007-02-05~171 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ca8ac1f28138565790289bfd76e742f9c28e3e3b Fix import lists --- diff --git a/compiler/deSugar/Desugar.lhs b/compiler/deSugar/Desugar.lhs index d16672c..970bd20 100644 --- a/compiler/deSugar/Desugar.lhs +++ b/compiler/deSugar/Desugar.lhs @@ -10,7 +10,6 @@ module Desugar ( deSugar, deSugarExpr ) where #include "HsVersions.h" -import Breakpoints import DynFlags import StaticFlags import HscTypes diff --git a/compiler/deSugar/DsBreakpoint.lhs b/compiler/deSugar/DsBreakpoint.lhs index c714a5e..dbf7ed2 100644 --- a/compiler/deSugar/DsBreakpoint.lhs +++ b/compiler/deSugar/DsBreakpoint.lhs @@ -14,45 +14,42 @@ module DsBreakpoint( , mkBreakpointExpr ) where -import IOEnv ( ioToIOEnv ) -import TysPrim ( alphaTyVar ) -import TysWiredIn ( intTy, stringTy, mkTupleTy, mkListTy, boolTy ) +import IOEnv +import TysPrim +import TysWiredIn import PrelNames -import Module ( moduleName, moduleNameFS, modulePackageId ) -import PackageConfig ( packageIdFS) -import SrcLoc ( SrcLoc, Located(..), SrcSpan, srcSpanFile, - noLoc, noSrcLoc, isGoodSrcSpan, - srcLocLine, srcLocCol, srcSpanStart ) - -import TyCon ( isUnLiftedTyCon, tyConDataCons ) -import TypeRep ( Type(..) ) +import Module +import PackageConfig +import SrcLoc +import TyCon +import TypeRep import DataCon import Type -import MkId ( unsafeCoerceId, lazyId ) -import Name ( Name, mkInternalName ) -import Var ( mkTyVar ) -import Id ( Id, idType, mkGlobalId, idName ) +import MkId +import Name +import Var +import Id -import IdInfo ( vanillaIdInfo, GlobalIdDetails (VanillaGlobal) ) -import BasicTypes ( Boxity(Boxed) ) -import OccName ( mkOccName, tvName ) +import IdInfo +import BasicTypes +import OccName import TcRnMonad import HsSyn -import HsLit ( HsLit(HsString, HsInt) ) -import CoreSyn ( CoreExpr, Expr (App) ) -import CoreUtils ( exprType ) +import HsLit +import CoreSyn +import CoreUtils import Outputable -import ErrUtils ( debugTraceMsg ) -import FastString ( mkFastString, unpackFS ) -import DynFlags ( GhcMode(..), DynFlag(..) ) +import ErrUtils +import FastString +import DynFlags import DsMonad import {-#SOURCE#-}DsExpr ( dsLExpr ) import Control.Monad import Data.IORef -import Foreign.StablePtr ( newStablePtr, castStablePtrToPtr ) -import GHC.Exts ( Ptr(..), Int(..), addr2Int#, unsafeCoerce# ) +import Foreign.StablePtr +import GHC.Exts mkBreakpointExpr :: SrcSpan -> Id -> DsM (LHsExpr Id) mkBreakpointExpr loc bkptFuncId = do @@ -132,7 +129,7 @@ dynBreakpoint :: SrcSpan -> DsM (LHsExpr Id) dynBreakpoint loc | not (isGoodSrcSpan loc) = pprPanic "dynBreakpoint" (ppr loc) dynBreakpoint loc = do - let autoBreakpoint = mkGlobalId VanillaGlobal breakpointAutoName + let autoBreakpoint = Id.mkGlobalId VanillaGlobal breakpointAutoName breakpointAutoTy vanillaIdInfo dflags <- getDOptsDs ioToIOEnv$ debugTraceMsg dflags 3 (text "Breakpoint inserted at " <> ppr loc) @@ -173,7 +170,7 @@ mkJumpFunc bkptFuncId (TyVarTy tyvar)))))))) build name extra = do ATyCon opaqueTyCon <- dsLookupGlobal opaqueTyConName - return$ mkGlobalId VanillaGlobal name + return$ Id.mkGlobalId VanillaGlobal name (basicType extra (mkTyConApp opaqueTyCon [])) vanillaIdInfo mkTupleType tys = mkTupleTy Boxed (length tys) tys diff --git a/compiler/ghci/Linker.lhs b/compiler/ghci/Linker.lhs index 8ff654e..f06a728 100644 --- a/compiler/ghci/Linker.lhs +++ b/compiler/ghci/Linker.lhs @@ -28,7 +28,6 @@ import ByteCodeLink import ByteCodeItbls import ByteCodeAsm import RtClosureInspect -import Var import IfaceEnv import Config import OccName @@ -63,7 +62,6 @@ import Control.Arrow ( second ) import Data.IORef import Data.List import Foreign.Ptr -import GHC.Exts import System.IO import System.Directory diff --git a/compiler/ghci/RtClosureInspect.hs b/compiler/ghci/RtClosureInspect.hs index ae97423..790749b 100644 --- a/compiler/ghci/RtClosureInspect.hs +++ b/compiler/ghci/RtClosureInspect.hs @@ -50,22 +50,18 @@ import HscTypes ( HscEnv ) import DataCon import Type -import TcRnMonad +import TcRnMonad ( TcM, initTcPrintErrors, ioToTcRn, recoverM, writeMutVar ) import TcType import TcMType import TcUnify import TcGadt -import DriverPhases import TyCon import Var import Name +import VarEnv +import OccName +import VarSet import Unique -import UniqSupply -import Var ( setVarUnique, mkTyVar, tyVarKind, setTyVarKind ) -import VarEnv ( mkVarEnv ) -import OccName ( emptyTidyOccEnv ) -import VarSet ( VarSet, mkVarSet, varSetElems, unionVarSets ) -import Unique ( getUnique, incrUnique ) import {-#SOURCE#-} TcRnDriver ( tcRnRecoverDataCon ) import TysPrim @@ -73,7 +69,6 @@ import PrelNames import TysWiredIn import Constants ( wORD_SIZE ) -import FastString ( mkFastString ) import Outputable import Maybes import Panic @@ -85,12 +80,11 @@ import GHC.Exts import GHC.Int ( Int32(..), Int64(..) ) import GHC.Word ( Word32(..), Word64(..) ) -import Control.Monad ( liftM, liftM2, msum ) +import Control.Monad import Data.Maybe import Data.Array.Base import Data.List ( partition ) import Foreign.Storable -import Foreign ( unsafePerformIO ) --------------------------------------------- -- * A representation of semi evaluated Terms diff --git a/compiler/main/Breakpoints.hs b/compiler/main/Breakpoints.hs index 34e07fb..fccf1a8 100644 --- a/compiler/main/Breakpoints.hs +++ b/compiler/main/Breakpoints.hs @@ -18,7 +18,7 @@ import Name import Var ( Id ) import PrelNames -import GHC.Exts ( unsafeCoerce# ) +import GHC.Exts #ifdef GHCI data BkptHandler a = BkptHandler {