Repository : http://darcs.haskell.org/ghc.git/
On branch : master https://github.com/ghc/ghc/commit/6acfc45604915603580eaa01e24eddd43daabef3 >--------------------------------------------------------------- commit 6acfc45604915603580eaa01e24eddd43daabef3 Author: Ian Lynagh <[email protected]> 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) _______________________________________________ ghc-commits mailing list [email protected] http://www.haskell.org/mailman/listinfo/ghc-commits
