From d180dadf08ddd961cf2a5db68f90223a7d76c232 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 31 Aug 2011 11:18:16 +0000 Subject: GF.Infra.Modules: minor tweaks Still keeping the modules both in a list and in a finite map. The overhead is smaller than I initially thought. --- src/compiler/GF/Compile/Rename.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Compile') diff --git a/src/compiler/GF/Compile/Rename.hs b/src/compiler/GF/Compile/Rename.hs index f1c7e2022..2a7f020a9 100644 --- a/src/compiler/GF/Compile/Rename.hs +++ b/src/compiler/GF/Compile/Rename.hs @@ -128,7 +128,7 @@ tree2status o = case o of buildStatus :: SourceGrammar -> Ident -> SourceModInfo -> Check Status buildStatus gr c mo = let mo' = self2status c mo in do - let gr1 = mGrammar ((c,mo) : modules gr) + let gr1 = prependModule gr (c,mo) ops = [OSimple e | e <- allExtends gr1 c] ++ opens mo mods <- checkErr $ mapM (lookupModule gr1 . openedModule) ops let sts = map modInfo2status $ zip ops mods -- cgit v1.2.3