From f867c2ccbb68b896d0ab3a5c316474d2e218ebcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sun, 28 Jan 2018 13:07:36 +0000 Subject: [PATCH] Indent first line after functions --- Nix/Pretty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nix/Pretty.hs b/Nix/Pretty.hs index 8726ae6..d0523da 100644 --- a/Nix/Pretty.hs +++ b/Nix/Pretty.hs @@ -131,7 +131,7 @@ prettyNix = withoutParens . cata phi where phi (NRecSet xs) = simpleExpr $ group $ nest 2 (vsep $ recPrefix <> lbrace : map prettyBind xs) <$> rbrace phi (NAbs args body) = leastPrecedence $ - (prettyParams args <> colon) (nest 2 $ withoutParens body) + (prettyParams args <> colon) (indent 2 (withoutParens body)) phi (NBinary op r1 r2) = flip NixDoc opInfo $ hsep [ wrapParens (f NAssocLeft) r1 , text $ operatorName opInfo