fresh names, move case stuff along a little

This commit is contained in:
2024-08-13 07:42:01 -07:00
parent 023e9e61ad
commit 1fef9dcfc6
6 changed files with 67 additions and 15 deletions

View File

@@ -15,10 +15,14 @@ getArity (Pi x str icit t u) = S (getArity u)
getArity _ = Z
-- Can metas live in context for now?
export
processDecl : Decl -> M ()
processDecl (TypeSig fc nm tm) = do
top <- get
let Nothing := lookup nm top
| _ => error fc "\{show nm} is already defined"
putStrLn "-----"
putStrLn "TypeSig \{nm} \{show tm}"
ty <- check (mkCtx top.metas) tm (VU fc)