mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22: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:
@@ -227,7 +227,7 @@ extendCompileEnvInt (_,gr,menv) k mfile sm = do
|
||||
t <- ioeIO $ getModificationTime file
|
||||
return $ Map.insert mod (t,imps) menv
|
||||
_ -> return menv
|
||||
return (k,mGrammar (sm:modules gr),menv2) --- reverse later
|
||||
return (k,prependModule gr sm,menv2) --- reverse later
|
||||
|
||||
extendCompileEnv e@(k,_,_) file sm = extendCompileEnvInt e k (Just file) sm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user