Commit 25266b7
Fix lambda not parenthesized on left side of operators.
When a lambda appeared as the left operand of <| (pipeLeft), it was
rendered without parentheses:
\x -> x <| "hello"
This is parsed as \x -> (x <| "hello"), not (\x -> x) <| "hello".
The fix extends the existing right-side lambda parenthesization
(from PR #132) to also handle the left side.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 84c0f33 commit 25266b7
2 files changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1063 | 1066 | | |
1064 | | - | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1065 | 1074 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | 1075 | | |
1070 | 1076 | | |
1071 | 1077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
136 | 152 | | |
0 commit comments