Use serialized modules

This commit is contained in:
2025-03-22 17:20:53 -07:00
parent 067090fb33
commit 7dc9751359
8 changed files with 134 additions and 36 deletions

View File

@@ -381,6 +381,7 @@ eraseEntries = do
process : QName → M (List Doc)
process name = do
let wat = QN ("Prelude" :: Nil) "arrayToList"
top <- getTop
entries <- getEntries EmptyMap name
-- Maybe move this dance into liftWhere

View File

@@ -334,6 +334,7 @@ instance Show TopEntry where
record ModContext where
constructor MkModCtx
csum : String
modDefs : SortedMap QName TopEntry
-- Do we need this if everything solved is zonked?
modMetaCtx : MetaContext
@@ -348,8 +349,8 @@ record ModContext where
-- expand these during normalization?
-- A placeholder while walking through dependencies of a module
emptyModCtx : ModContext
emptyModCtx = MkModCtx EmptyMap (MC EmptyMap 0 NoCheck) EmptyMap
emptyModCtx : String → ModContext
emptyModCtx csum = MkModCtx csum EmptyMap (MC EmptyMap 0 NoCheck) EmptyMap
record TopContext where
constructor MkTop