Track module dependencies

This commit is contained in:
2025-12-31 21:30:05 -08:00
parent bfe79d65ea
commit c56270c183
3 changed files with 14 additions and 7 deletions

View File

@@ -402,6 +402,7 @@ record ModContext where
modMetaCtx : MetaContext
-- longer term maybe drop this, put the operator decls in ctxDefs and collect them on import
ctxOps : Operators
modDeps : List QName
-- Top level context.
-- Most of the reason this is separate is to have a different type
@@ -412,7 +413,7 @@ record ModContext where
-- A placeholder while walking through dependencies of a module
emptyModCtx : String ModContext
emptyModCtx csum = MkModCtx csum emptyMap (MC emptyMap Nil 0 NoCheck) emptyMap
emptyModCtx csum = MkModCtx csum emptyMap (MC emptyMap Nil 0 NoCheck) emptyMap Nil
HintTable : U
HintTable = SortedMap QName (List (QName × Tm))