summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-05-19 16:19:47 +0100
committerIan Lynagh <ian@well-typed.com>2013-05-19 16:19:47 +0100
commitfdd552e0ecaa17300670a48562995040e1d6687e (patch)
tree1f81b1676f3314ce86f2133c198ea796b8163bc6 /compiler/main
parentf7e33ca75eb1fffd5d4d84c109980e0ebf207743 (diff)
downloadhaskell-fdd552e0ecaa17300670a48562995040e1d6687e.tar.gz
Fix a build problem with integer-simple
We were trying to look up the mkInteger Id before we'd compiled the Integer modules. I'm not sure why this never showed up with integer-gmp; possibly we just always got lucky with the build order.
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/TidyPgm.lhs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/main/TidyPgm.lhs b/compiler/main/TidyPgm.lhs
index 6bb28613b6..1c6bb397ea 100644
--- a/compiler/main/TidyPgm.lhs
+++ b/compiler/main/TidyPgm.lhs
@@ -36,7 +36,6 @@ import Name hiding (varName)
import NameSet
import NameEnv
import Avail
-import PrelNames
import IfaceEnv
import TcEnv
import TcRnMonad
@@ -986,8 +985,7 @@ tidyTopBinds :: HscEnv
-> IO (TidyEnv, CoreProgram)
tidyTopBinds hsc_env this_mod unfold_env init_occ_env binds
- = do mkIntegerId <- liftM tyThingId
- $ initTcForLookup hsc_env (tcLookupGlobal mkIntegerName)
+ = do mkIntegerId <- lookupMkIntegerName dflags hsc_env
return $ tidy mkIntegerId init_env binds
where
dflags = hsc_dflags hsc_env