diff options
Diffstat (limited to 'compiler/typecheck')
-rw-r--r-- | compiler/typecheck/ClsInst.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/Constraint.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/FamInst.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/Inst.hs | 4 | ||||
-rw-r--r-- | compiler/typecheck/TcBinds.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcCanonical.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcEvTerm.hs | 6 | ||||
-rw-r--r-- | compiler/typecheck/TcEvidence.hs | 6 | ||||
-rw-r--r-- | compiler/typecheck/TcExpr.hs | 4 | ||||
-rw-r--r-- | compiler/typecheck/TcHsSyn.hs | 4 | ||||
-rw-r--r-- | compiler/typecheck/TcInstDcls.hs | 8 | ||||
-rw-r--r-- | compiler/typecheck/TcInteract.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcMatches.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcPat.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcRnDriver.hs | 4 | ||||
-rw-r--r-- | compiler/typecheck/TcSMonad.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcTyClsDecls.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcTyDecls.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcType.hs | 2 | ||||
-rw-r--r-- | compiler/typecheck/TcTypeable.hs | 2 |
20 files changed, 31 insertions, 31 deletions
diff --git a/compiler/typecheck/ClsInst.hs b/compiler/typecheck/ClsInst.hs index 41874f1807..b112bff74a 100644 --- a/compiler/typecheck/ClsInst.hs +++ b/compiler/typecheck/ClsInst.hs @@ -32,7 +32,7 @@ import PrelNames import Id import Type -import MkCore ( mkStringExprFS, mkNaturalExpr ) +import GHC.Core.Make ( mkStringExprFS, mkNaturalExpr ) import Name ( Name, pprDefinedAt ) import VarEnv ( VarEnv ) diff --git a/compiler/typecheck/Constraint.hs b/compiler/typecheck/Constraint.hs index 9bd18504b1..40fc8fdedb 100644 --- a/compiler/typecheck/Constraint.hs +++ b/compiler/typecheck/Constraint.hs @@ -92,7 +92,7 @@ import TcType import TcEvidence import TcOrigin -import CoreSyn +import GHC.Core import TyCoPpr import OccName diff --git a/compiler/typecheck/FamInst.hs b/compiler/typecheck/FamInst.hs index 748e9fd8bf..eb86ec0284 100644 --- a/compiler/typecheck/FamInst.hs +++ b/compiler/typecheck/FamInst.hs @@ -19,7 +19,7 @@ import GHC.Driver.Types import FamInstEnv import InstEnv( roughMatchTcs ) import Coercion -import CoreLint +import GHC.Core.Lint import TcEvidence import GHC.Iface.Load import TcRnMonad diff --git a/compiler/typecheck/Inst.hs b/compiler/typecheck/Inst.hs index 525fa7ebf3..96b387b7ec 100644 --- a/compiler/typecheck/Inst.hs +++ b/compiler/typecheck/Inst.hs @@ -52,7 +52,7 @@ import TcEnv import TcEvidence import InstEnv import TysWiredIn ( heqDataCon, eqDataCon ) -import CoreSyn ( isOrphan ) +import GHC.Core ( isOrphan ) import FunDeps import TcMType import Type @@ -62,7 +62,7 @@ import TcType import GHC.Driver.Types import Class( Class ) import MkId( mkDictFunId ) -import CoreSyn( Expr(..) ) -- For the Coercion constructor +import GHC.Core( Expr(..) ) -- For the Coercion constructor import Id import Name import Var ( EvVar, tyVarName, VarBndr(..) ) diff --git a/compiler/typecheck/TcBinds.hs b/compiler/typecheck/TcBinds.hs index f597d6daf9..cc2ee8ec84 100644 --- a/compiler/typecheck/TcBinds.hs +++ b/compiler/typecheck/TcBinds.hs @@ -20,7 +20,7 @@ import GhcPrelude import {-# SOURCE #-} TcMatches ( tcGRHSsPat, tcMatchesFun ) import {-# SOURCE #-} TcExpr ( tcMonoExpr ) import {-# SOURCE #-} TcPatSyn ( tcPatSynDecl, tcPatSynBuilderBind ) -import CoreSyn (Tickish (..)) +import GHC.Core (Tickish (..)) import CostCentre (mkUserCC, CCFlavour(DeclCC)) import GHC.Driver.Session import FastString diff --git a/compiler/typecheck/TcCanonical.hs b/compiler/typecheck/TcCanonical.hs index 9b79002311..7bbaa1ec99 100644 --- a/compiler/typecheck/TcCanonical.hs +++ b/compiler/typecheck/TcCanonical.hs @@ -27,7 +27,7 @@ import Class import TyCon import TyCoRep -- cleverly decomposes types, good for completeness checking import Coercion -import CoreSyn +import GHC.Core import Id( idType, mkTemplateLocals ) import FamInstEnv ( FamInstEnvs ) import FamInst ( tcTopNormaliseNewTypeTF_maybe ) diff --git a/compiler/typecheck/TcEvTerm.hs b/compiler/typecheck/TcEvTerm.hs index 7812339d15..39e03180b7 100644 --- a/compiler/typecheck/TcEvTerm.hs +++ b/compiler/typecheck/TcEvTerm.hs @@ -8,15 +8,15 @@ import GhcPrelude import FastString import Type -import CoreSyn -import MkCore +import GHC.Core +import GHC.Core.Make import Literal ( Literal(..) ) import TcEvidence import GHC.Driver.Types import GHC.Driver.Session import Name import Module -import CoreUtils +import GHC.Core.Utils import PrelNames import SrcLoc diff --git a/compiler/typecheck/TcEvidence.hs b/compiler/typecheck/TcEvidence.hs index 0794157ed0..89bf4149b7 100644 --- a/compiler/typecheck/TcEvidence.hs +++ b/compiler/typecheck/TcEvidence.hs @@ -58,7 +58,7 @@ import GhcPrelude import Var import CoAxiom import Coercion -import PprCore () -- Instance OutputableBndr TyVar +import GHC.Core.Ppr () -- Instance OutputableBndr TyVar import TcType import Type import TyCon @@ -71,9 +71,9 @@ import Predicate import Name import Pair -import CoreSyn +import GHC.Core import Class ( classSCSelId ) -import CoreFVs ( exprSomeFreeVars ) +import GHC.Core.FVs ( exprSomeFreeVars ) import Util import Bag diff --git a/compiler/typecheck/TcExpr.hs b/compiler/typecheck/TcExpr.hs index 16b0f26ed1..f5e92ffe7d 100644 --- a/compiler/typecheck/TcExpr.hs +++ b/compiler/typecheck/TcExpr.hs @@ -440,7 +440,7 @@ tcExpr expr@(ExplicitTuple x tup_args boxity) res_ty = do { let arity = length tup_args tup_tc = tupleTyCon boxity arity -- NB: tupleTyCon doesn't flatten 1-tuples - -- See Note [Don't flatten tuples from HsSyn] in MkCore + -- See Note [Don't flatten tuples from HsSyn] in GHC.Core.Make ; res_ty <- expTypeToType res_ty ; (coi, arg_tys) <- matchExpectedTyConApp tup_tc res_ty -- Unboxed tuples have RuntimeRep vars, which we @@ -461,7 +461,7 @@ tcExpr expr@(ExplicitTuple x tup_args boxity) res_ty ; let actual_res_ty = mkVisFunTys [ty | (ty, (L _ (Missing _))) <- arg_tys `zip` tup_args] (mkTupleTy1 boxity arg_tys) - -- See Note [Don't flatten tuples from HsSyn] in MkCore + -- See Note [Don't flatten tuples from HsSyn] in GHC.Core.Make ; wrap <- tcSubTypeHR (Shouldn'tHappenOrigin "ExpTuple") (Just expr) diff --git a/compiler/typecheck/TcHsSyn.hs b/compiler/typecheck/TcHsSyn.hs index 7dfb3ff1ab..1ccd8aced2 100644 --- a/compiler/typecheck/TcHsSyn.hs +++ b/compiler/typecheck/TcHsSyn.hs @@ -83,7 +83,7 @@ import Bag import Outputable import Util import UniqFM -import CoreSyn +import GHC.Core import {-# SOURCE #-} TcSplice (runTopSplice) @@ -115,7 +115,7 @@ hsPatType (ViewPat ty _ _) = ty hsPatType (ListPat (ListPatTc ty Nothing) _) = mkListTy ty hsPatType (ListPat (ListPatTc _ (Just (ty,_))) _) = ty hsPatType (TuplePat tys _ bx) = mkTupleTy1 bx tys - -- See Note [Don't flatten tuples from HsSyn] in MkCore + -- See Note [Don't flatten tuples from HsSyn] in GHC.Core.Make hsPatType (SumPat tys _ _ _ ) = mkSumTy tys hsPatType (ConPatOut { pat_con = lcon , pat_arg_tys = tys }) diff --git a/compiler/typecheck/TcInstDcls.hs b/compiler/typecheck/TcInstDcls.hs index 09720f57ca..68ed568e05 100644 --- a/compiler/typecheck/TcInstDcls.hs +++ b/compiler/typecheck/TcInstDcls.hs @@ -44,9 +44,9 @@ import TcDeriv import TcEnv import TcHsType import TcUnify -import CoreSyn ( Expr(..), mkApps, mkVarApps, mkLams ) -import MkCore ( nO_METHOD_BINDING_ERROR_ID ) -import CoreUnfold ( mkInlineUnfoldingWithArity, mkDFunUnfolding ) +import GHC.Core ( Expr(..), mkApps, mkVarApps, mkLams ) +import GHC.Core.Make ( nO_METHOD_BINDING_ERROR_ID ) +import GHC.Core.Unfold ( mkInlineUnfoldingWithArity, mkDFunUnfolding ) import Type import TcEvidence import TyCon @@ -189,7 +189,7 @@ Instead we use a cunning trick. * We give 'df' a magical unfolding (DFunUnfolding [$cop1, $cop2, ..]) that lists its methods. - * We make CoreUnfold.exprIsConApp_maybe spot a DFunUnfolding and return + * We make GHC.Core.Unfold.exprIsConApp_maybe spot a DFunUnfolding and return a suitable constructor application -- inlining df "on the fly" as it were. diff --git a/compiler/typecheck/TcInteract.hs b/compiler/typecheck/TcInteract.hs index 90cc412318..ce3cc9ffaf 100644 --- a/compiler/typecheck/TcInteract.hs +++ b/compiler/typecheck/TcInteract.hs @@ -45,7 +45,7 @@ import TcSMonad import Bag import MonadUtils ( concatMapM, foldlM ) -import CoreSyn +import GHC.Core import Data.List( partition, deleteFirstsBy ) import SrcLoc import VarEnv diff --git a/compiler/typecheck/TcMatches.hs b/compiler/typecheck/TcMatches.hs index 8088602972..262e7ccf2c 100644 --- a/compiler/typecheck/TcMatches.hs +++ b/compiler/typecheck/TcMatches.hs @@ -48,7 +48,7 @@ import Util import SrcLoc -- Create chunkified tuple tybes for monad comprehensions -import MkCore +import GHC.Core.Make import Control.Monad import Control.Arrow ( second ) diff --git a/compiler/typecheck/TcPat.hs b/compiler/typecheck/TcPat.hs index 8a3b154fe6..9f298bfdad 100644 --- a/compiler/typecheck/TcPat.hs +++ b/compiler/typecheck/TcPat.hs @@ -451,7 +451,7 @@ tc_pat penv (TuplePat _ pats boxity) pat_ty thing_inside = do { let arity = length pats tc = tupleTyCon boxity arity -- NB: tupleTyCon does not flatten 1-tuples - -- See Note [Don't flatten tuples from HsSyn] in MkCore + -- See Note [Don't flatten tuples from HsSyn] in GHC.Core.Make ; (coi, arg_tys) <- matchExpectedPatTy (matchExpectedTyConApp tc) penv pat_ty -- Unboxed tuples have RuntimeRep vars, which we discard: diff --git a/compiler/typecheck/TcRnDriver.hs b/compiler/typecheck/TcRnDriver.hs index 8f87554349..930dc3c15a 100644 --- a/compiler/typecheck/TcRnDriver.hs +++ b/compiler/typecheck/TcRnDriver.hs @@ -80,8 +80,8 @@ import TcEvidence import Constraint import TcOrigin import qualified BooleanFormula as BF -import PprTyThing( pprTyThingInContext ) -import CoreFVs( orphNamesOfFamInst ) +import GHC.Core.Ppr.TyThing ( pprTyThingInContext ) +import GHC.Core.FVs ( orphNamesOfFamInst ) import FamInst import InstEnv import FamInstEnv( FamInst, pprFamInst, famInstsRepTyCons diff --git a/compiler/typecheck/TcSMonad.hs b/compiler/typecheck/TcSMonad.hs index ab838be5fa..737ac7da8c 100644 --- a/compiler/typecheck/TcSMonad.hs +++ b/compiler/typecheck/TcSMonad.hs @@ -175,7 +175,7 @@ import UniqFM import UniqDFM import Maybes -import CoreMap +import GHC.Core.Map import Control.Monad import qualified Control.Monad.Fail as MonadFail import MonadUtils diff --git a/compiler/typecheck/TcTyClsDecls.hs b/compiler/typecheck/TcTyClsDecls.hs index 05112757c9..e712f79e1d 100644 --- a/compiler/typecheck/TcTyClsDecls.hs +++ b/compiler/typecheck/TcTyClsDecls.hs @@ -4332,7 +4332,7 @@ checkRoleAnnot tv (L _ (Just r1)) r2 -- -dcore-lint is enabled. See Note [Role inference] in TcTyDecls checkValidRoles :: TyCon -> TcM () -- If you edit this function, you may need to update the GHC formalism --- See Note [GHC Formalism] in CoreLint +-- See Note [GHC Formalism] in GHC.Core.Lint checkValidRoles tc | isAlgTyCon tc -- tyConDataCons returns an empty list for data families diff --git a/compiler/typecheck/TcTyDecls.hs b/compiler/typecheck/TcTyDecls.hs index bf18c06729..b9b51e11f7 100644 --- a/compiler/typecheck/TcTyDecls.hs +++ b/compiler/typecheck/TcTyDecls.hs @@ -40,7 +40,7 @@ import TyCoRep( Type(..), Coercion(..), MCoercion(..), UnivCoProvenance(..) ) import TcType import Predicate import TysWiredIn( unitTy ) -import MkCore( rEC_SEL_ERROR_ID ) +import GHC.Core.Make( rEC_SEL_ERROR_ID ) import GHC.Hs import Class import Type diff --git a/compiler/typecheck/TcType.hs b/compiler/typecheck/TcType.hs index 27fd90f6c6..ba4efcf35d 100644 --- a/compiler/typecheck/TcType.hs +++ b/compiler/typecheck/TcType.hs @@ -209,7 +209,7 @@ import TyCon -- others: import GHC.Driver.Session -import CoreFVs +import GHC.Core.FVs import Name -- hiding (varName) -- We use this to make dictionaries for type literals. -- Perhaps there's a better way to do this? diff --git a/compiler/typecheck/TcTypeable.hs b/compiler/typecheck/TcTypeable.hs index b13d70f1dd..19d695f6d1 100644 --- a/compiler/typecheck/TcTypeable.hs +++ b/compiler/typecheck/TcTypeable.hs @@ -37,7 +37,7 @@ import GHC.Hs import GHC.Driver.Session import Bag import Var ( VarBndr(..) ) -import CoreMap +import GHC.Core.Map import Constants import Fingerprint(Fingerprint(..), fingerprintString, fingerprintFingerprints) import Outputable |