From 8cce874f8b5f93c3bff65b625c03b3c55f1b5f31 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 24 Oct 2003 18:19:47 +0000 Subject: More woek on interfaces --- src/GF/Compile/Compile.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/GF/Compile/Compile.hs') diff --git a/src/GF/Compile/Compile.hs b/src/GF/Compile/Compile.hs index 2a119878d..4822cf2b4 100644 --- a/src/GF/Compile/Compile.hs +++ b/src/GF/Compile/Compile.hs @@ -7,13 +7,13 @@ import PrGrammar import Update import Lookup import Modules -import ModDeps import ReadFiles import ShellState import MkResource -- the main compiler passes import GetGrammar +import Rebuild import Rename import Refresh import CheckGrammar @@ -141,6 +141,7 @@ makeSourceModule opts env@(k,gr,can) mo@(i,mi) = case mi of putp " type checking reused" $ ioeErr $ showCheckModule mos mo2 return $ (k,mo2) _ -> compileSourceModule opts env mo + _ -> compileSourceModule opts env mo where putp = putPointE opts @@ -150,7 +151,9 @@ compileSourceModule opts env@(k,gr,can) mo@(i,mi) = do let putp = putPointE opts mos = modules gr - mo2:_ <- putp " renaming " $ ioeErr $ renameModule mos mo + mo1 <- ioeErr $ rebuildModule mos mo + + mo2:_ <- putp " renaming " $ ioeErr $ renameModule mos mo1 (mo3:_,warnings) <- putp " type checking" $ ioeErr $ showCheckModule mos mo2 putStrE warnings -- cgit v1.2.3