summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2011-08-31 11:18:16 +0000
committerhallgren <hallgren@chalmers.se>2011-08-31 11:18:16 +0000
commitd180dadf08ddd961cf2a5db68f90223a7d76c232 (patch)
treeca882ac3d5ea840d0ffc44a7a4503a8b32a9ebbe /src/compiler/GF/Compile
parentb743abb375bda7a758bbdde8cabe47e3b38b78c9 (diff)
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.
Diffstat (limited to 'src/compiler/GF/Compile')
-rw-r--r--src/compiler/GF/Compile/Rename.hs2
1 files changed, 1 insertions, 1 deletions
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