Add another annonymous function test
@@ -60,3 +60,21 @@ f6 = \a -> a
(anonymous_function_expr (backslash) (pattern (lower_pattern (lower_case_identifier))) (arrow) (value_expr (value_qid (lower_case_identifier))))
)
)
+
+=====================================
+Function containing a pipe into an anonymous function without braces
+=====================================
+f1 =
+ 1 |> \a -> a
+---
+
+(file
+ (value_declaration
+ (function_declaration_left (lower_case_identifier))
+ (eq)
+ (bin_op_expr (number_constant_expr (number_literal))
+ (operator (operator_identifier))
+ (anonymous_function_expr (backslash) (pattern (lower_pattern (lower_case_identifier))) (arrow) (value_expr (value_qid (lower_case_identifier))))
+ )
+ )
+)
