mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 23:02:50 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user