Indent first line after functions

This commit is contained in:
Domen Kožar 2018-01-28 13:07:36 +00:00
parent f61fe5d53b
commit f867c2ccbb
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
1 changed files with 1 additions and 1 deletions

View File

@ -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