From b391db0bf6cb5c1cc76543f1966e019bbc52b50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sun, 28 Jan 2018 13:08:43 +0000 Subject: [PATCH] assert and with should be followed with a newline --- Nix/Pretty.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nix/Pretty.hs b/Nix/Pretty.hs index 51a6d76..c8c34d3 100644 --- a/Nix/Pretty.hs +++ b/Nix/Pretty.hs @@ -170,8 +170,8 @@ prettyNix = withoutParens . cata phi where <$> align (text "else" <+> withoutParens falseBody) ) phi (NWith scope body) = leastPrecedence $ - text "with" <+> withoutParens scope <> semi <+> withoutParens body + text "with" <+> withoutParens scope <> semi <$> align (withoutParens body) phi (NAssert cond body) = leastPrecedence $ - text "assert" <+> withoutParens cond <> semi <+> withoutParens body + text "assert" <+> withoutParens cond <> semi <$> align (withoutParens body) recPrefix = text "rec" <> space