Port Prettier.idr to newt

This commit is contained in:
2024-11-16 12:01:48 -08:00
parent 26119be8b6
commit b185065fb0
7 changed files with 654 additions and 47 deletions

View File

@@ -1013,5 +1013,6 @@ infer ctx (RImplicit fc) = do
infer ctx (RLit fc (LString str)) = pure (Lit fc (LString str), !(primType fc "String"))
infer ctx (RLit fc (LInt i)) = pure (Lit fc (LInt i), !(primType fc "Int"))
infer ctx (RLit fc (LChar c)) = pure (Lit fc (LChar c), !(primType fc "Char"))
infer ctx tm = error (getFC tm) "Implement infer \{show tm}"