mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 06:22:51 -06:00
added positions to Module record; avoided Module constructor where possible; moved Refresh to Compile/
This commit is contained in:
@@ -34,9 +34,9 @@ removeLiT gr = liftM MGrammar $ mapM (remlModule gr) (modules gr)
|
||||
|
||||
remlModule :: SourceGrammar -> (Ident,SourceModInfo) -> Err (Ident,SourceModInfo)
|
||||
remlModule gr mi@(name,mod) = case mod of
|
||||
ModMod (Module mt st fs me ops js) -> do
|
||||
js1 <- mapMTree (remlResInfo gr) js
|
||||
let mod2 = ModMod $ Module mt st fs me ops js1
|
||||
ModMod mo -> do
|
||||
js1 <- mapMTree (remlResInfo gr) (jments mo)
|
||||
let mod2 = ModMod $ mo {jments = js1}
|
||||
return $ (name,mod2)
|
||||
_ -> return mi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user