use string for module names

This commit is contained in:
2026-02-13 10:18:28 -08:00
parent 4ec199b064
commit 24048eadf1
12 changed files with 58 additions and 60 deletions

View File

@@ -34,7 +34,7 @@ lookupRaw raw top =
Just entry => Just entry
Nothing => go top.imported
where
go : List (List String) Maybe TopEntry
go : List String Maybe TopEntry
go Nil = Nothing
go (ns :: nss) = case lookupMap' ns top.modules of
Nothing => go nss
@@ -47,7 +47,7 @@ instance Show TopContext where
show top = "\nContext:\n [\{ joinBy "\n" $ map (show snd) $ toList top.defs}]"
emptyTop : TopContext
emptyTop = MkTop emptyMap Nil emptyMap Nil emptyMap (MC emptyMap Nil 0 CheckAll) 0 Nil emptyMap
emptyTop = MkTop emptyMap Nil emptyMap "" emptyMap (MC emptyMap Nil 0 CheckAll) 0 Nil emptyMap
setFlag : QName FC EFlag M Unit