From ea6cdf330dfbdd71fbf3ab4a17671abf3a5f80cf Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 7 Jul 2014 18:23:16 +0200 Subject: [PATCH] pretty: wrap app argument around parens --- Nix/Pretty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nix/Pretty.hs b/Nix/Pretty.hs index ece4d8e..b86de93 100644 --- a/Nix/Pretty.hs +++ b/Nix/Pretty.hs @@ -65,6 +65,6 @@ prettyNix (Fix expr) = go expr where go (NInherit attrs) = text "inherit" go (NVar e) = prettyNix e - go (NApp fun arg) = prettyNix fun <+> prettyNix arg + go (NApp fun arg) = prettyNix fun <+> parens (prettyNix arg) go (NAbs args body) = (prettyNix args <> colon) $$ prettyNix body