[project @ 2002-02-14 13:59:22 by simonpj]
authorsimonpj <unknown>
Thu, 14 Feb 2002 13:59:24 +0000 (13:59 +0000)
committersimonpj <unknown>
Thu, 14 Feb 2002 13:59:24 +0000 (13:59 +0000)
Import wibbles

ghc/compiler/absCSyn/PprAbsC.lhs
ghc/compiler/codeGen/CgCon.lhs
ghc/compiler/coreSyn/CorePrep.lhs
ghc/compiler/coreSyn/CoreUtils.lhs
ghc/compiler/rename/RnHsSyn.lhs
ghc/compiler/simplCore/FloatOut.lhs
ghc/compiler/typecheck/Inst.lhs
ghc/compiler/typecheck/TcHsSyn.lhs
ghc/compiler/types/TyCon.lhs
ghc/compiler/types/Type.lhs

index 64f8048..ecd5bf8 100644 (file)
@@ -59,7 +59,6 @@ import BitSet         ( BitSet, intBS )
 import Outputable
 import GlaExts
 import Util            ( lengthExceeds, listLengthCmp )
-import Maybe           ( isNothing, maybeToList )
 
 import ST
 
index db81d25..3b91214 100644 (file)
@@ -48,8 +48,7 @@ import DataCon                ( DataCon, dataConName, dataConTag,
                          isUnboxedTupleCon, isNullaryDataCon, dataConId, 
                          dataConWrapId, dataConRepArity
                        )
-import Id              ( Id, idName, idPrimRep, idCafInfo )
-import IdInfo          ( mayHaveCafRefs )
+import Id              ( Id, idName, idPrimRep )
 import Literal         ( Literal(..) )
 import PrelInfo                ( maybeCharLikeCon, maybeIntLikeCon )
 import PrimRep         ( PrimRep(..), isFollowableRep )
index 63c1d95..3d4caf2 100644 (file)
@@ -14,7 +14,7 @@ import CoreUtils( exprType, exprIsValue, etaExpand, exprArity, exprOkForSpeculat
 import CoreFVs ( exprFreeVars )
 import CoreLint        ( endPass )
 import CoreSyn
-import Type    ( Type, applyTy, splitFunTy_maybe, isTyVarTy,
+import Type    ( Type, applyTy, splitFunTy_maybe, 
                  isUnLiftedType, isUnboxedTupleType, repType, seqType )
 import NewDemand  ( Demand, isStrictDmd, lazyDmd, StrictSig(..), DmdType(..) )
 import PrimOp  ( PrimOp(..) )
index d7a91a0..87709fd 100644 (file)
@@ -48,12 +48,11 @@ import Name         ( hashName )
 import Literal         ( hashLiteral, literalType, litIsDupable, isZeroLit )
 import DataCon         ( DataCon, dataConRepArity, dataConArgTys, isExistentialDataCon, dataConTyCon )
 import PrimOp          ( PrimOp(..), primOpOkForSpeculation, primOpIsCheap )
-import Id              ( Id, idType, globalIdDetails, idNewStrictness, idLBVarInfo, 
+import Id              ( Id, idType, globalIdDetails, idNewStrictness, 
                          mkWildId, idArity, idName, idUnfolding, idInfo, isOneShotLambda,
                          isDataConId_maybe, mkSysLocal, isDataConId, isBottomingId
                        )
-import IdInfo          ( LBVarInfo(..),  
-                         GlobalIdDetails(..),
+import IdInfo          ( GlobalIdDetails(..),
                          megaSeqIdInfo )
 import NewDemand       ( appIsBottom )
 import Type            ( Type, mkFunTy, mkForAllTy, splitFunTy_maybe, splitFunTy,
index d3f9c74..df20eb0 100644 (file)
@@ -11,7 +11,7 @@ module RnHsSyn where
 import HsSyn
 import HsCore
 import Class           ( FunDep, DefMeth(..) )
-import TyCon           ( DataConDetails, visibleDataCons )
+import TyCon           ( visibleDataCons )
 import TysWiredIn      ( tupleTyCon, listTyCon, parrTyCon, charTyCon )
 import Name            ( Name, getName, isTyVarName )
 import NameSet
index 683f71b..a1cb821 100644 (file)
@@ -18,9 +18,7 @@ import ErrUtils               ( dumpIfSet_dyn )
 import CostCentre      ( dupifyCC, CostCentre )
 import Id              ( Id )
 import CoreLint                ( showPass, endPass )
-import SetLevels       ( setLevels, isInlineCtxt,
-                         Level(..), tOP_LEVEL, ltMajLvl, ltLvl, isTopLvl
-                       )
+import SetLevels       ( setLevels, Level(..), ltMajLvl, ltLvl, isTopLvl )
 import UniqSupply       ( UniqSupply )
 import List            ( partition )
 import Outputable
index 7d51052..3805b9b 100644 (file)
@@ -34,7 +34,6 @@ module Inst (
 
 #include "HsVersions.h"
 
-import CmdLineOpts ( opt_NoMethodSharing )
 import HsSyn   ( HsLit(..), HsOverLit(..), HsExpr(..) )
 import TcHsSyn ( TcExpr, TcId, TypecheckedHsExpr,
                  mkHsTyApp, mkHsDictApp, mkHsConApp, zonkId
index 39661e4..d691ab4 100644 (file)
@@ -690,7 +690,7 @@ zonkPat (TuplePat pats boxed)
     returnNF_Tc (TuplePat new_pats boxed, ids)
 
 zonkPat (ConPat n ty tvs dicts pats)
-  = zonkTcTypeToType ty                `thenNF_Tc` \ new_ty ->
+  = zonkTcTypeToType ty                        `thenNF_Tc` \ new_ty ->
     mapNF_Tc zonkTcTyVarToTyVar tvs    `thenNF_Tc` \ new_tvs ->
     mapNF_Tc zonkIdBndr dicts          `thenNF_Tc` \ new_dicts ->
     tcExtendGlobalValEnv new_dicts     $
index 8a03de1..642f246 100644 (file)
@@ -67,7 +67,6 @@ import BasicTypes     ( Arity, RecFlag(..), Boxity(..),
 import Name            ( Name, nameUnique, NamedThing(getName) )
 import PrelNames       ( Unique, Uniquable(..), anyBoxConKey )
 import PrimRep         ( PrimRep(..), isFollowableRep )
-import Util             ( lengthIs )
 import Maybes          ( expectJust )
 import Outputable
 import FastString
index e34c924..7c1adf7 100644 (file)
@@ -85,7 +85,7 @@ import {-# SOURCE #-} PprType( pprType )      -- Only called in debug messages
 import {-# SOURCE #-}   Subst  ( substTyWith )
 
 -- friends:
-import Var     ( Var, TyVar, tyVarKind, tyVarName, setTyVarName )
+import Var     ( TyVar, tyVarKind, tyVarName, setTyVarName )
 import VarEnv
 import VarSet
 
@@ -101,7 +101,6 @@ import TyCon        ( TyCon, isRecursiveTyCon, isPrimTyCon,
 
 -- others
 import CmdLineOpts     ( opt_DictsStrict )
-import Maybes          ( maybeToBool )
 import SrcLoc          ( noSrcLoc )
 import PrimRep         ( PrimRep(..) )
 import Unique          ( Uniquable(..) )