From 39bd40eea9c0b8935f7feabdeb20802e98e5b603 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Fri, 20 Sep 2024 16:15:47 +0100 Subject: 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. --- src/Inky/Type.idr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Inky/Type.idr') 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) -- cgit v1.2.3