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.
This commit is contained in:
hallgren
2011-08-31 11:18:16 +00:00
parent b743abb375
commit d180dadf08
4 changed files with 20 additions and 23 deletions

View File

@@ -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