Variant on Tree, try not to expand too much

This commit is contained in:
2024-10-17 21:54:11 -07:00
parent 05afc10631
commit 41a7563ad5
6 changed files with 118 additions and 9 deletions

View File

@@ -40,9 +40,10 @@ processDecl (TypeSig fc nm tm) = do
putStrLn "TypeSig \{nm} \{show tm}"
ty <- check (mkCtx top.metas fc) tm (VU fc)
putStrLn "got \{pprint [] ty}"
ty' <- nf [] ty
putStrLn "nf \{pprint [] ty'}"
modify $ setDef nm ty' Axiom
-- I was doing this previously, but I don't want to over-expand VRefs
-- ty' <- nf [] ty
-- putStrLn "nf \{pprint [] ty'}"
modify $ setDef nm ty Axiom
processDecl (PType fc nm ty) = do
ctx <- get