[commit: ghc] master: We can't use Integer literals when compiling the integer-* package, either (6acfc45)
Ian Lynagh
igloo at earth.li
Sun May 19 19:33:04 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/6acfc45604915603580eaa01e24eddd43daabef3
>---------------------------------------------------------------
commit 6acfc45604915603580eaa01e24eddd43daabef3
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun May 19 17:47:30 2013 +0100
We can't use Integer literals when compiling the integer-* package, either
>---------------------------------------------------------------
compiler/coreSyn/CorePrep.lhs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compiler/coreSyn/CorePrep.lhs b/compiler/coreSyn/CorePrep.lhs
index e55f595..3d642bd 100644
--- a/compiler/coreSyn/CorePrep.lhs
+++ b/compiler/coreSyn/CorePrep.lhs
@@ -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)
More information about the ghc-commits
mailing list