[project @ 2001-06-25 14:36:04 by simonpj]
authorsimonpj <unknown>
Mon, 25 Jun 2001 14:36:06 +0000 (14:36 +0000)
committersimonpj <unknown>
Mon, 25 Jun 2001 14:36:06 +0000 (14:36 +0000)
Import wibbles

31 files changed:
ghc/compiler/codeGen/CgCon.lhs
ghc/compiler/codeGen/CgTailCall.lhs
ghc/compiler/codeGen/SMRep.lhs
ghc/compiler/coreSyn/MkExternalCore.lhs
ghc/compiler/cprAnalysis/CprAnalyse.lhs
ghc/compiler/deSugar/DsCCall.lhs
ghc/compiler/deSugar/DsExpr.lhs
ghc/compiler/hsSyn/HsExpr.lhs
ghc/compiler/hsSyn/HsTypes.lhs
ghc/compiler/main/SysTools.lhs
ghc/compiler/parser/Lex.lhs
ghc/compiler/parser/RdrHsSyn.lhs
ghc/compiler/simplCore/CSE.lhs
ghc/compiler/simplCore/FloatIn.lhs
ghc/compiler/simplCore/LiberateCase.lhs
ghc/compiler/simplCore/SimplUtils.lhs
ghc/compiler/specialise/Rules.lhs
ghc/compiler/specialise/Specialise.lhs
ghc/compiler/stranal/SaAbsInt.lhs
ghc/compiler/stranal/WorkWrap.lhs
ghc/compiler/stranal/WwLib.lhs
ghc/compiler/typecheck/TcExpr.lhs
ghc/compiler/typecheck/TcMType.lhs
ghc/compiler/typecheck/TcMatches.lhs
ghc/compiler/typecheck/TcModule.lhs
ghc/compiler/typecheck/TcRules.lhs
ghc/compiler/typecheck/TcTyClsDecls.lhs
ghc/compiler/typecheck/TcTyDecls.lhs
ghc/compiler/typecheck/TcType.lhs
ghc/compiler/types/Generics.lhs
ghc/compiler/types/Type.lhs

index e09c085..aa2aec3 100644 (file)
@@ -75,7 +75,6 @@ cgTopRhsCon id con args
        name          = idName id
        closure_label = mkClosureLabel name
        lf_info       = mkConLFInfo con
-       cg_id_info    = stableAmodeIdInfo id (CLbl closure_label PtrRep) lf_info
     in
 
     (
index 06e7ff5..acfc3ae 100644 (file)
@@ -1,7 +1,7 @@
 %
 % (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
 %
-% $Id: CgTailCall.lhs,v 1.29 2000/12/06 13:19:49 simonmar Exp $
+% $Id: CgTailCall.lhs,v 1.30 2001/06/25 14:36:04 simonpj Exp $
 %
 %********************************************************
 %*                                                     *
@@ -39,8 +39,7 @@ import CgRetConv      ( dataReturnConvPrim,
 import CgStackery      ( mkTaggedStkAmodes, adjustStackHW )
 import CgUsages                ( getSpRelOffset, adjustSpAndHp )
 import CgUpdate                ( pushSeqFrame )
-import CLabel          ( mkUpdInfoLabel, mkRtsPrimOpLabel, 
-                         mkBlackHoleInfoTableLabel )
+import CLabel          ( mkUpdInfoLabel, mkRtsPrimOpLabel )
 import ClosureInfo     ( nodeMustPointToIt,
                          getEntryConvention, EntryConvention(..), LambdaFormInfo
                        )
index d2bb4f7..e2698c0 100644 (file)
@@ -49,7 +49,6 @@ module SMRep (
 #include "HsVersions.h"
 
 import CmdLineOpts
-import AbsCSyn         ( Liveness(..) )
 import Constants       ( sTD_HDR_SIZE, pROF_HDR_SIZE,
                          gRAN_HDR_SIZE, tICKY_HDR_SIZE, 
                           aRR_WORDS_HDR_SIZE, aRR_PTRS_HDR_SIZE,
index 933bd17..b8e17cc 100644 (file)
@@ -11,7 +11,6 @@ module MkExternalCore (
 
 import qualified ExternalCore as C
 import Char
-import Ratio
 import Module
 import CoreSyn
 import HscTypes        
@@ -22,13 +21,10 @@ import DataCon
 import CoreSyn
 import Var
 import IdInfo
-import NameEnv
 import Literal
 import Name
 import CostCentre
 import Outputable
-import PrimOp
-import Class
 import ForeignCall
 import PprExternalCore 
 import CmdLineOpts
index 760d142..81b2f9e 100644 (file)
@@ -6,7 +6,7 @@ module CprAnalyse ( cprAnalyse ) where
 
 #include "HsVersions.h"
 
-import CmdLineOpts     ( DynFlags, DynFlag(..), dopt )
+import CmdLineOpts     ( DynFlags, DynFlag(..) )
 import CoreLint                ( showPass, endPass )
 import CoreSyn
 import CoreUtils       ( exprIsValue )
@@ -91,10 +91,6 @@ data AbsVal = Top                -- Not a constructed product
                                  -- we could use appropriate Tuple Vals
      deriving (Eq,Show)
 
-isFun :: AbsVal -> Bool
-isFun (Fun _) = True
-isFun _       = False
-
 -- For pretty debugging
 instance Outputable AbsVal where
   ppr Top      = ptext SLIT("Top")
index e9f3dd5..b7c6064 100644 (file)
@@ -18,7 +18,7 @@ import CoreSyn
 
 import DsMonad
 
-import CoreUtils       ( exprType, mkCoerce )
+import CoreUtils       ( exprType )
 import Id              ( Id, mkWildId, idType )
 import MkId            ( mkFCallId, realWorldPrimId, mkPrimOpId )
 import Maybes          ( maybeToBool )
@@ -31,7 +31,6 @@ import TcType         ( isUnLiftedType, mkFunTys,
                          tcEqType, isBoolTy, isUnitTy,
                          Type
                        )
-import Type            ( repType )
 import PrimOp          ( PrimOp(TouchOp) )
 import TysPrim         ( realWorldStatePrimTy,
                          byteArrayPrimTyCon, mutableByteArrayPrimTyCon,
index 2ce9440..997d565 100644 (file)
@@ -13,11 +13,9 @@ import HsSyn         ( failureFreePat,
                          HsExpr(..), OutPat(..), HsLit(..), ArithSeqInfo(..),
                          Stmt(..), HsMatchContext(..), HsDoContext(..), 
                          Match(..), HsBinds(..), MonoBinds(..), 
-                         mkSimpleMatch, isDoExpr
-                       )
-import TcHsSyn         ( TypecheckedHsExpr, TypecheckedHsBinds,
-                         TypecheckedStmt, TypecheckedMatchContext
+                         mkSimpleMatch 
                        )
+import TcHsSyn         ( TypecheckedHsExpr, TypecheckedHsBinds, TypecheckedStmt )
 import TcType          ( tcSplitAppTy, tcSplitFunTys, tcSplitTyConApp_maybe, tcTyConAppArgs,
                          isIntegerTy, tcSplitTyConApp, isUnLiftedType, Type )
 import CoreSyn
index 60a1b83..d036547 100644 (file)
@@ -17,7 +17,6 @@ import HsImpExp               ( isOperator )
 
 -- others:
 import ForeignCall     ( Safety )
-import Name            ( Name )
 import Outputable      
 import PprType         ( pprParendType )
 import Type            ( Type )
index 04a6192..f5156ae 100644 (file)
@@ -27,7 +27,7 @@ module HsTypes (
 #include "HsVersions.h"
 
 import Class           ( FunDep )
-import TcType          ( Type, Kind, ThetaType, SourceType(..), PredType, 
+import TcType          ( Type, Kind, ThetaType, SourceType(..), 
                          tcSplitSigmaTy, liftedTypeKind, eqKind, tcEqType
                        )
 import TypeRep         ( Type(..), TyNote(..) )        -- toHsType sees the representation
index 05514bb..66c36c4 100644 (file)
@@ -49,8 +49,7 @@ import Panic          ( progName, GhcException(..) )
 import Util            ( global )
 import CmdLineOpts     ( dynFlag, verbosity )
 
-import List            ( isPrefixOf )
-import Exception       ( throw, throwDyn, catchAllIO )
+import Exception       ( throwDyn, catchAllIO )
 import IO              ( hPutStr, hPutChar, hPutStrLn, hFlush, stderr )
 import Directory       ( doesFileExist, removeFile )
 import IOExts          ( IORef, readIORef, writeIORef )
@@ -69,7 +68,8 @@ import Int
 #if !defined(mingw32_TARGET_OS)
 import qualified Posix
 #else
-import Addr              ( nullAddr )
+import Addr             ( nullAddr )
+import List            ( isPrefixOf )
 #endif
 
 #include "HsVersions.h"
@@ -565,9 +565,8 @@ interpreted a command line 'foo\baz' as 'foobaz'.
 -----------------------------------------------------------------------------
 -- Convert filepath into MSDOS form.
 
-dosifyPath  :: String -> String
 dosifyPaths :: [String] -> [String]
--- dosifyPath does two things
+-- dosifyPaths does two things
 -- a) change '/' to '\'
 -- b) remove initial '/cygdrive/'
 
@@ -595,7 +594,6 @@ dosifyPath stuff
 #else
 
 --------------------- Unix version ---------------------
-dosifyPath   p  = p
 dosifyPaths  ps = ps
 unDosifyPath xs = subst '\\' '/' xs
 --------------------------------------------------------
index 7cd811d..be83c11 100644 (file)
@@ -42,7 +42,7 @@ import CmdLineOpts    ( opt_HiVersion, opt_NoHiCheck )
 import ForeignCall     ( Safety(..) )
 import Demand          ( Demand(..) {- instance Read -} )
 import UniqFM           ( listToUFM, lookupUFM )
-import BasicTypes      ( NewOrData(..), Boxity(..) )
+import BasicTypes      ( Boxity(..) )
 import SrcLoc          ( SrcLoc, incSrcLine, srcLocFile, srcLocLine,
                          replaceSrcLine, mkSrcLoc )
 
index a5c7f3f..8cc3afe 100644 (file)
@@ -61,7 +61,6 @@ module RdrHsSyn (
 #include "HsVersions.h"
 
 import HsSyn           -- Lots of it
-import HsPat           ( collectSigTysFromPats )
 import OccName         ( mkClassTyConOcc, mkClassDataConOcc, mkWorkerOcc,
                           mkSuperDictSelOcc, mkDefaultMethodOcc, mkGenOcc1,
                          mkGenOcc2, 
index 041fdfb..310e36e 100644 (file)
@@ -10,7 +10,7 @@ module CSE (
 
 #include "HsVersions.h"
 
-import CmdLineOpts     ( DynFlag(..), DynFlags, dopt )
+import CmdLineOpts     ( DynFlag(..), DynFlags )
 import Id              ( Id, idType )
 import CoreUtils       ( hashExpr, cheapEqExpr, exprIsBig, mkAltExpr )
 import DataCon         ( isUnboxedTupleCon )
index ec02ec0..72d7649 100644 (file)
@@ -16,7 +16,7 @@ module FloatIn ( floatInwards ) where
 
 #include "HsVersions.h"
 
-import CmdLineOpts     ( DynFlags, DynFlag(..), dopt )
+import CmdLineOpts     ( DynFlags, DynFlag(..) )
 import CoreSyn
 import CoreUtils       ( exprIsValue, exprIsDupable )
 import CoreLint                ( showPass, endPass )
index d9ba473..15d256f 100644 (file)
@@ -8,14 +8,13 @@ module LiberateCase ( liberateCase ) where
 
 #include "HsVersions.h"
 
-import CmdLineOpts     ( DynFlags, DynFlag(..), dopt, opt_LiberateCaseThreshold )
+import CmdLineOpts     ( DynFlags, DynFlag(..), opt_LiberateCaseThreshold )
 import CoreLint                ( showPass, endPass )
 import CoreSyn
 import CoreUnfold      ( couldBeSmallEnoughToInline )
 import Var             ( Id )
 import VarEnv
 import UniqFM          ( ufmToList )
-import Maybes
 import Outputable
 \end{code}
 
index d40f151..0f0cb76 100644 (file)
@@ -19,7 +19,7 @@ module SimplUtils (
 #include "HsVersions.h"
 
 import CmdLineOpts     ( switchIsOn, SimplifierSwitch(..),
-                         opt_SimplDoLambdaEtaExpansion, opt_SimplCaseMerge, opt_DictsStrict,
+                         opt_SimplDoLambdaEtaExpansion, opt_SimplCaseMerge, 
                          opt_UF_UpdateInPlace
                        )
 import CoreSyn
@@ -38,7 +38,7 @@ import Maybes         ( maybeToBool, catMaybes )
 import Name            ( setNameUnique )
 import Demand          ( isStrict )
 import SimplMonad
-import Type            ( Type, mkForAllTys, seqType, repType,
+import Type            ( Type, mkForAllTys, seqType, 
                          splitTyConApp_maybe, tyConAppArgs, mkTyVarTys,
                          isUnLiftedType,
                          splitRepFunTys
index 591e4db..4535aab 100644 (file)
@@ -31,7 +31,6 @@ import VarSet
 import VarEnv
 import TcType          ( mkTyVarTy )
 import qualified TcType ( match )
-import TypeRep         ( Type(..) )    -- Can see type representation for matching
 
 import Outputable
 import Maybe           ( isJust, isNothing, fromMaybe )
index 52eae04..d950200 100644 (file)
@@ -9,9 +9,7 @@ module Specialise ( specProgram ) where
 #include "HsVersions.h"
 
 import CmdLineOpts     ( DynFlags, DynFlag(..) )
-import Id              ( Id, idName, idType, mkUserLocal,
-                         idSpecialisation, modifyIdInfo
-                       )
+import Id              ( Id, idName, idType, mkUserLocal, idSpecialisation )
 import TcType          ( Type, mkTyVarTy, tcSplitSigmaTy, 
                          tyVarsOfTypes, tyVarsOfTheta, 
                          mkForAllTys, tcCmpType
@@ -1098,12 +1096,6 @@ splitUDs bndrs uds@(MkUD {dict_binds = orig_dbs,
 %************************************************************************
 
 \begin{code}
-lookupId:: IdEnv Id -> Id -> Id
-lookupId env id = case lookupVarEnv env id of
-                       Nothing  -> id
-                       Just id' -> id'
-
-----------------------------------------
 type SpecM a = UniqSM a
 
 thenSM    = thenUs
index faa2346..e413b48 100644 (file)
@@ -26,7 +26,6 @@ import Demand         ( Demand(..), wwPrim, wwStrict, wwUnpack, wwLazy,
                        )
 import SaLib
 import TyCon           ( isProductTyCon, isRecursiveTyCon )
-import BasicTypes      ( NewOrData(..) )
 import Type            ( splitTyConApp_maybe, 
                          isUnLiftedType, Type )
 import TyCon           ( tyConUnique )
index 58e294d..796488a 100644 (file)
@@ -15,7 +15,7 @@ import CoreUtils      ( exprType )
 import Id              ( Id, idType, idStrictness, idArity, isOneShotLambda,
                          setIdStrictness, idInlinePragma, mkWorkerId,
                          setIdWorkerInfo, idCprInfo, setInlinePragma )
-import Type            ( Type, splitForAllTys, splitFunTys )
+import Type            ( Type )
 import IdInfo          ( mkStrictnessInfo, noStrictnessInfo, StrictnessInfo(..),
                          CprInfo(..), InlinePragInfo(..), isNeverInlinePrag,
                          WorkerInfo(..)
index 96ba8f3..55a269b 100644 (file)
@@ -26,7 +26,7 @@ import TysWiredIn     ( tupleCon )
 import Type            ( Type, isUnLiftedType, mkFunTys,
                          splitForAllTys, splitFunTys,  isAlgType
                        )
-import BasicTypes      ( NewOrData(..), Arity, Boxity(..) )
+import BasicTypes      ( Arity, Boxity(..) )
 import Var              ( Var, isId )
 import UniqSupply      ( returnUs, thenUs, getUniqueUs, getUniquesUs, UniqSM )
 import Util            ( zipWithEqual )
index e50f0d8..1216001 100644 (file)
@@ -63,7 +63,6 @@ import PrelNames      ( cCallableClassName,
                          thenMName, failMName, returnMName, ioTyConName
                        )
 import Outputable
-import Maybes          ( maybeToBool )
 import ListSetOps      ( minusList )
 import Util
 import CmdLineOpts
index 7b279fb..f11634e 100644 (file)
@@ -47,15 +47,12 @@ module TcMType (
 -- friends:
 import TypeRep         ( Type(..), Kind, TyNote(..) )  -- friend
 import Type            -- Lots and lots
-import TcType          ( SigmaType, RhoType, tcEqType,
+import TcType          ( tcEqType,
                          tcSplitRhoTy, tcSplitPredTy_maybe, tcSplitAppTy_maybe, 
                          tcSplitTyConApp_maybe, tcSplitFunTy_maybe
                        )
-import PprType         ( pprType )
 import Subst           ( Subst, mkTopTyVarSubst, substTy )
-import TyCon           ( TyCon, mkPrimTyCon, isNewTyCon, isSynTyCon, isTupleTyCon, 
-                         tyConArity, tupleTyConBoxity
-                       )
+import TyCon           ( TyCon, mkPrimTyCon, isTupleTyCon, tyConArity, tupleTyConBoxity )
 import PrimRep         ( PrimRep(VoidRep) )
 import Var             ( TyVar, varName, tyVarKind, tyVarName, isTyVar, mkTyVar,
                          isMutTyVar, isSigTyVar )
@@ -67,11 +64,9 @@ import TysWiredIn    ( voidTy, listTyCon, mkListTy, mkTupleTy )
 import Name            ( Name, NamedThing(..), setNameUnique, mkSysLocalName,
                          mkLocalName, mkDerivedTyConOcc, isSystemName
                        )
-import PrelNames       ( floatTyConKey, doubleTyConKey, foreignPtrTyConKey,
-                         integerTyConKey, intTyConKey, addrTyConKey )
 import VarSet
 import BasicTypes      ( Boxity, Arity, isBoxed )
-import Unique          ( Unique, Uniquable(..) )
+import Unique          ( Uniquable(..) )
 import SrcLoc          ( noSrcLoc )
 import Util            ( nOfThem )
 import Outputable
index d63110a..94c406e 100644 (file)
@@ -19,7 +19,7 @@ import HsSyn          ( HsBinds(..), Match(..), GRHSs(..), GRHS(..),
                        )
 import RnHsSyn         ( RenamedMatch, RenamedGRHSs, RenamedStmt, RenamedPat, RenamedHsType,
                          RenamedMatchContext, extractHsTyVars )
-import TcHsSyn         ( TcMatch, TcGRHSs, TcStmt, TcDictBinds, TypecheckedPat, TypecheckedMatchContext )
+import TcHsSyn         ( TcMatch, TcGRHSs, TcStmt, TcDictBinds, TypecheckedPat )
 
 import TcMonad
 import TcMonoType      ( kcHsSigTypes, tcScopedTyVars, checkSigTyVars, tcHsSigType, sigPatCtxt )
index cdcd01d..3ebbc7e 100644 (file)
@@ -73,7 +73,6 @@ import HscTypes               ( PersistentCompilerState(..), HomeSymbolTable,
                          TyThing(..), implicitTyThingIds, 
                          mkTypeEnv
                        )
-import VarSet
 \end{code}
 
 
index a87a661..b048f86 100644 (file)
@@ -18,14 +18,13 @@ import TcSimplify   ( tcSimplifyToDicts, tcSimplifyInferCheck )
 import TcMType         ( newTyVarTy )
 import TcType          ( tyVarsOfTypes, openTypeKind )
 import TcIfaceSig      ( tcCoreExpr, tcCoreLamBndrs, tcVar )
-import TcMonoType      ( kcHsSigTypes, tcHsSigType, tcScopedTyVars, checkSigTyVars )
+import TcMonoType      ( kcHsSigTypes, tcHsSigType, tcScopedTyVars )
 import TcExpr          ( tcExpr )
-import TcEnv           ( tcExtendLocalValEnv, tcExtendTyVarEnv, isLocalThing )
+import TcEnv           ( tcExtendLocalValEnv, isLocalThing )
 import Rules           ( extendRuleBase )
 import Inst            ( LIE, plusLIEs, instToId )
 import Id              ( idName, idType, mkLocalId )
 import Module          ( Module )
-import VarSet
 import List            ( partition )
 import Outputable
 \end{code}
index fcf1636..382ce38 100644 (file)
@@ -28,19 +28,15 @@ import TcClassDcl   ( tcClassDecl1 )
 import TcInstDcls      ( tcAddDeclCtxt )
 import TcMonoType      ( kcHsTyVars, kcHsType, kcHsLiftedSigType, kcHsContext, mkTyClTyVars )
 import TcMType         ( unifyKind, newKindVar, zonkKindEnv )
-import TcType          ( tcSplitTyConApp_maybe,
-                         Type, Kind, mkArrowKind, liftedTypeKind, zipFunTys
-                       )
-import Subst           ( mkTyVarSubst, substTy )
+import TcType          ( Type, Kind, mkArrowKind, liftedTypeKind, zipFunTys )
 import Variance         ( calcTyConArgVrcs )
 import Class           ( Class, mkClass, classTyCon )
 import TyCon           ( TyCon, ArgVrcs, AlgTyConFlavour(..), 
-                         tyConName, tyConKind, tyConTyVars, tyConArity, tyConDataCons,
-                         mkSynTyCon, mkAlgTyCon, mkClassTyCon, mkForeignTyCon, isNewTyCon,
+                         tyConKind, tyConDataCons,
+                         mkSynTyCon, mkAlgTyCon, mkClassTyCon, mkForeignTyCon, 
                          isRecursiveTyCon )
-import TysWiredIn      ( unitTy )
-import DataCon         ( isNullaryDataCon, dataConOrigArgTys )
-import Var             ( varName, varType )
+import DataCon         ( dataConOrigArgTys )
+import Var             ( varName )
 import FiniteMap
 import Digraph         ( stronglyConnComp, SCC(..) )
 import Name            ( Name, getSrcLoc, isTyVarName )
index dfd86ed..9ab5661 100644 (file)
@@ -21,21 +21,16 @@ import TcEnv                ( tcExtendTyVarEnv,
                          tcLookupTyCon, tcLookupRecId, 
                          TyThingDetails(..), RecTcEnv
                        )
-import TcType          ( tcSplitTyConApp_maybe, tcEqType, 
-                         tyVarsOfTypes, tyVarsOfPred, 
-                         mkTyConApp, mkTyVarTys, mkForAllTys, 
-                         Type, ThetaType
-                       )
+import TcType          ( tcEqType, tyVarsOfTypes, tyVarsOfPred, Type, ThetaType )
 import TcMonad
 
-import DataCon         ( DataCon, mkDataCon, dataConFieldLabels, dataConRepType,
-                         isNullaryDataCon, dataConOrigArgTys )
+import DataCon         ( DataCon, mkDataCon, dataConFieldLabels )
 import MkId            ( mkDataConId, mkDataConWrapId, mkRecordSelId )
 import FieldLabel
 import Var             ( TyVar )
 import Name            ( Name, NamedThing(..) )
 import Outputable
-import TyCon           ( TyCon, AlgTyConFlavour(..), tyConTyVars )
+import TyCon           ( TyCon, tyConTyVars )
 import VarSet          ( intersectVarSet, isEmptyVarSet )
 import PrelNames       ( unpackCStringName, unpackCStringUtf8Name )
 import ListSetOps      ( equivClasses )
index d6420b2..d9c6387 100644 (file)
@@ -90,22 +90,20 @@ import TypeRep              ( Type(..), TyNote(..) )  -- friend
 import Type            -- Lots and lots
 import TyCon           ( TyCon, isPrimTyCon, tyConArity, isNewTyCon )
 import Class           ( classTyCon, classHasFDs, Class )
-import Var             ( TyVar, tyVarName, isTyVar, tyVarKind, mkTyVar )
+import Var             ( TyVar, tyVarKind )
 import VarEnv
 import VarSet
 
 -- others:
 import CmdLineOpts     ( opt_DictsStrict )
-import Name            ( Name, NamedThing(..), setNameUnique, mkSysLocalName,
-                         mkLocalName, mkDerivedTyConOcc
-                       )
+import Name            ( Name, NamedThing(..), mkLocalName )
 import OccName         ( OccName, mkDictOcc )
 import NameSet
 import PrelNames       ( floatTyConKey, doubleTyConKey, foreignPtrTyConKey,
                          integerTyConKey, intTyConKey, addrTyConKey, boolTyConKey )
 import Unique          ( Unique, Uniquable(..), mkTupleTyConUnique )
-import SrcLoc          ( SrcLoc, noSrcLoc )
-import Util            ( nOfThem, cmpList, thenCmp )
+import SrcLoc          ( SrcLoc )
+import Util            ( cmpList, thenCmp )
 import Maybes          ( maybeToBool, expectJust )
 import BasicTypes      ( Boxity(..) )
 import Outputable
index b14ad1b..41a5660 100644 (file)
@@ -7,7 +7,7 @@ module Generics ( mkTyConGenInfo, mkGenericRhs,
 import RnHsSyn         ( RenamedHsExpr )
 import HsSyn           ( HsExpr(..), InPat(..), mkSimpleMatch )
 
-import Type             ( Type, isUnLiftedType, applyTys, tyVarsOfType, tyVarsOfTypes,
+import Type             ( Type, isUnLiftedType, tyVarsOfType, tyVarsOfTypes,
                          mkTyVarTys, mkForAllTys, mkTyConApp, 
                          mkFunTy, isTyVarTy, getTyVar_maybe,
                          funTyCon
@@ -19,7 +19,7 @@ import TyCon            ( TyCon, tyConTyVars, tyConDataConsIfAvailable,
                          tyConGenInfo, isNewTyCon, newTyConRep, isBoxedTupleTyCon
                        )
 import Name            ( Name, mkSysLocalName )
-import CoreSyn          ( mkLams, Expr(..), CoreExpr, AltCon(..), Note(..),
+import CoreSyn          ( mkLams, Expr(..), CoreExpr, AltCon(..), 
                          mkConApp, Alt, mkTyApps, mkVarApps )
 import BasicTypes       ( EP(..), Boxity(..) )
 import Var              ( TyVar )
@@ -36,7 +36,6 @@ import CoreUnfold       ( mkTopUnfolding )
 
 import Unique          ( mkBuiltinUnique )
 import SrcLoc          ( builtinSrcLoc )
-import Maybes          ( expectJust )
 import Outputable 
 
 #include "HsVersions.h"
index b782b19..3ddb287 100644 (file)
@@ -84,7 +84,6 @@ import TypeRep
 
 -- Other imports:
 
-import {-# SOURCE #-}  DataCon( DataCon )
 import {-# SOURCE #-}  PprType( pprType )      -- Only called in debug messages
 import {-# SOURCE #-}   Subst  ( mkTyVarSubst, substTy )
 
@@ -93,24 +92,22 @@ import Var  ( Var, TyVar, tyVarKind, tyVarName, setTyVarName )
 import VarEnv
 import VarSet
 
-import OccName ( mkDictOcc )
-import Name    ( Name, NamedThing(..), OccName, mkLocalName, tidyOccName )
-import NameSet
+import Name    ( NamedThing(..), mkLocalName, tidyOccName )
 import Class   ( classTyCon )
 import TyCon   ( TyCon, isRecursiveTyCon,
                  isUnboxedTupleTyCon, isUnLiftedTyCon,
                  isFunTyCon, isNewTyCon, newTyConRep,
-                 isAlgTyCon, isSynTyCon, tyConArity, tyConTyVars,
-                 tyConKind, tyConDataCons, getSynTyConDefn,
-                 tyConPrimRep, isPrimTyCon
+                 isAlgTyCon, isSynTyCon, tyConArity, 
+                 tyConKind, getSynTyConDefn,
+                 tyConPrimRep, 
                )
 
 -- others
 import Maybes          ( maybeToBool )
-import SrcLoc          ( SrcLoc, noSrcLoc )
+import SrcLoc          ( noSrcLoc )
 import PrimRep         ( PrimRep(..) )
-import Unique          ( Unique, Uniquable(..) )
-import Util            ( mapAccumL, seqList, thenCmp )
+import Unique          ( Uniquable(..) )
+import Util            ( mapAccumL, seqList )
 import Outputable
 import UniqSet         ( sizeUniqSet )         -- Should come via VarSet
 \end{code}