summaryrefslogtreecommitdiff
path: root/compiler/coreSyn/CorePrep.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/coreSyn/CorePrep.lhs')
-rw-r--r--compiler/coreSyn/CorePrep.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/coreSyn/CorePrep.lhs b/compiler/coreSyn/CorePrep.lhs
index c754aae4e7..bbf104b127 100644
--- a/compiler/coreSyn/CorePrep.lhs
+++ b/compiler/coreSyn/CorePrep.lhs
@@ -1115,9 +1115,9 @@ data CorePrepEnv = CPE {
lookupMkIntegerName :: DynFlags -> HscEnv -> IO Id
lookupMkIntegerName dflags hsc_env
- = if thisPackage dflags == primPackageId
+ = if thisPackage dflags == primPackageKey
then return $ panic "Can't use Integer in ghc-prim"
- else if thisPackage dflags == integerPackageId
+ else if thisPackage dflags == integerPackageKey
then return $ panic "Can't use Integer in integer"
else liftM tyThingId
$ initTcForLookup hsc_env (tcLookupGlobal mkIntegerName)