diff --git a/src/Nixfmt/Types.hs b/src/Nixfmt/Types.hs index c2f435af..8da6082e 100644 --- a/src/Nixfmt/Types.hs +++ b/src/Nixfmt/Types.hs @@ -345,7 +345,7 @@ instance LanguageElement Expression where ) (Assert _ cond _ body) -> [cond, body] (If _ expr0 _ expr1 _ expr2) -> [expr0, expr1, expr2] - (Abstraction param _ body) -> [Abstraction param (ann TColon) (Term (Token (ann (Identifier "_")))), body] + (Abstraction param _ body) -> walkSubprograms param ++ [body] (Application g a) -> [g, a] (Operation left _ right) -> [left, right] (MemberCheck name _ sels) -> name : (sels >>= walkSubprograms)