@@ -1788,9 +1788,18 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
17881788 | Just n <- snat ppo d p e = depth d $ annotate (AnnData "Nat" "") (text (show n))
17891789 prettySe d p bnd (PRef fc _ n) = prettyName True (ppopt_impl ppo) bnd n
17901790 prettySe d p bnd (PLam fc n nfc ty sc) =
1791− depth d . bracket p startPrec . group . align . hang 2 $
1792− text "\\" <> prettyBindingOf n False <+> text "=>" <$>
1793− prettySe (decD d) startPrec ((n, False):bnd) sc
1791+ let (ns, sc') = getLamNames [n] sc in
1792+ depth d . bracket p startPrec . group . align . hang 2 $
1793+ text "\\" <> prettyBindingsOf ns False <+> text "=>" <$>
1794+ prettySe (decD d) startPrec ((n, False):bnd) sc'
1795+ where
1796+ getLamNames acc (PLam fc n nfc ty sc) = getLamNames (n : acc) sc
1797+ getLamNames acc sc = (reverse acc, sc)
1798+
1799+ prettyBindingsOf [] t = text ""
1800+ prettyBindingsOf [n] t = prettyBindingOf n t
1801+ prettyBindingsOf (n : ns) t = prettyBindingOf n t <> text "," <+>
1802+ prettyBindingsOf ns t
17941803 prettySe d p bnd (PLet fc n nfc ty v sc) =
17951804 depth d . bracket p startPrec . group . align $
17961805 kwd "let" <+> (group . align . hang 2 $ prettyBindingOf n False <+> text "=" <$> prettySe (decD d) startPrec bnd v) </>