From: Anders Date: Fri, 12 Jun 2015 10:45:41 +0000 (+0200) Subject: Fix printing X-Git-Url: https://git.ak3n.com/?a=commitdiff_plain;h=b937db635548e96a50b08180eb03c4412362d8e8;p=cubicaltt.git Fix printing --- diff --git a/CTT.hs b/CTT.hs index 1b8a687..5703947 100644 --- a/CTT.hs +++ b/CTT.hs @@ -337,14 +337,19 @@ showEnv b e = names x = if b then text x <+> equals else PP.empty showEnv1 e = case e of - (Upd x env,u:us,fs) -> showEnv1 (env,us,fs) <> names x <+> showVal u <> comma - (Sub i env,us,phi:fs) -> showEnv1 (env,us,fs) <> names (show i) <+> text (show phi) <> comma + (Upd x env,u:us,fs) -> + showEnv1 (env,us,fs) <+> names x <+> showVal u <> comma + (Sub i env,us,phi:fs) -> + showEnv1 (env,us,fs) <+> names (show i) <+> text (show phi) <> comma + (Def _ env,vs,fs) -> showEnv1 (env,vs,fs) _ -> showEnv b e in case e of (Empty,_,_) -> PP.empty (Def _ env,vs,fs) -> showEnv b (env,vs,fs) - (Upd x env,u:us,fs) -> parens (showEnv1 (env,us,fs) <+> names x <+> showVal u) - (Sub i env,us,phi:fs) -> parens (showEnv1 (env,us,fs) <+> names (show i) <+> text (show phi)) + (Upd x env,u:us,fs) -> + parens (showEnv1 (env,us,fs) <+> names x <+> showVal u) + (Sub i env,us,phi:fs) -> + parens (showEnv1 (env,us,fs) <+> names (show i) <+> text (show phi)) instance Show Loc where show = render . showLoc