summaryrefslogtreecommitdiff
path: root/src/Inky/Type.idr
diff options
context:
space:
mode:
authorGreg Brown <greg.brown01@ed.ac.uk>2024-09-20 16:15:47 +0100
committerGreg Brown <greg.brown01@ed.ac.uk>2024-09-20 16:15:47 +0100
commit39bd40eea9c0b8935f7feabdeb20802e98e5b603 (patch)
treec2cc3c3483927109410a21f683de934d92f7564f /src/Inky/Type.idr
parent974717f0aa46bb295d44e239594b38f63f39ceab (diff)
Get working type pretty printer.
Write a type on stdin, and it will tell you if it's well formed, and will pretty print it back if so. Rewrite the parser library to be n-ary.
Diffstat (limited to 'src/Inky/Type.idr')
-rw-r--r--src/Inky/Type.idr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Inky/Type.idr b/src/Inky/Type.idr
index e3eee12..9cfc1f7 100644
--- a/src/Inky/Type.idr
+++ b/src/Inky/Type.idr
@@ -65,7 +65,7 @@ thinCongAll prf (as :< (x :- a)) =
thinId : (a : Ty ctx v) -> thin Id a = a
thinIdAll : (as : Row (Ty ctx v)) -> thinAll Id as = as
-thinId (TVar i) = cong TVar (indexId i)
+thinId (TVar (%% x)) = Refl
thinId TNat = Refl
thinId (TArrow a b) = cong2 TArrow (thinId a) (thinId b)
thinId (TProd as) = cong TProd (thinIdAll as)