persist errors in modules

This commit is contained in:
2026-02-13 09:58:09 -08:00
parent dcf162684e
commit 4ec199b064
3 changed files with 6 additions and 4 deletions

View File

@@ -403,6 +403,7 @@ record ModContext where
-- longer term maybe drop this, put the operator decls in ctxDefs and collect them on import
ctxOps : Operators
modDeps : List (List String)
modErrors : List Error
-- Top level context.
-- Most of the reason this is separate is to have a different type
@@ -413,7 +414,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 Nil
emptyModCtx csum = MkModCtx csum emptyMap (MC emptyMap Nil 0 NoCheck) emptyMap Nil Nil
HintTable : U
HintTable = SortedMap QName (List (QName × Tm))