From 97f84ccace4e634b4e02178a702818e69292dc9f Mon Sep 17 00:00:00 2001 From: Malte Voos Date: Mon, 8 Jul 2024 22:01:42 +0200 Subject: implement top-level definitions --- src/pretty/Pretty.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pretty/Pretty.ml') diff --git a/src/pretty/Pretty.ml b/src/pretty/Pretty.ml index 8b7ad1a..fa25a40 100644 --- a/src/pretty/Pretty.ml +++ b/src/pretty/Pretty.ml @@ -74,6 +74,7 @@ struct (* TODO: improve indentation *) and pp fmt = function | S.Var ix -> pp_var fmt ix + | S.Def (p, _) -> Ident.pp fmt p | S.Pi (name, base, fam) -> rassoc 1 pp_arg ~sep:" -> " (bind name pp) fmt ((name, base), fam) | S.Lam (name, body) -> Fmt.pf fmt "@[\\@[%a@] -> @[%a@]@]" pp_local_name name (bind name pp) body | S.Sg (name, base, fam) -> rassoc 2 pp_arg ~sep:" * " (bind name pp) fmt ((name, base), fam) -- cgit 1.4.1