Commit 6acfc456 authored by's avatar
Browse files

We can't use Integer literals when compiling the integer-* package, either

parent bf6854bb
......@@ -1113,6 +1113,8 @@ lookupMkIntegerName :: DynFlags -> HscEnv -> IO Id
lookupMkIntegerName dflags hsc_env
= if thisPackage dflags == primPackageId
then return $ panic "Can't use Integer in ghc-prim"
else if thisPackage dflags == integerPackageId
then return $ panic "Can't use Integer in integer"
else liftM tyThingId
$ initTcForLookup hsc_env (tcLookupGlobal mkIntegerName)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment