You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Excessive parser backtracking in lambda arguments #3262
\ is a valid operator, so maybe since the lambda body parse failed, it's backtracking to parse id \ a. I think since the lambda head is correct, it should be able to commit, since -> is not a valid operator.
Activity
paf31 commentedon Mar 1, 2018
A smaller example:
natefaubion commentedon Mar 1, 2018
\is a valid operator, so maybe since the lambda body parse failed, it's backtracking to parseid \ a. I think since the lambda head is correct, it should be able to commit, since->is not a valid operator.natefaubion commentedon Aug 8, 2018
I think this is anything that causes backtracking to
Parsec.buildExpressionParser.bad = id [,]This example should clearly fail with an unexpected
,instead, which you'd get if you left off theid.hdgarrood commentedon Feb 14, 2019
Shall we close this in favour of #3517?
hdgarrood commentedon May 8, 2019
I think this is safe to close unless we want to add tests for error positions, but that might be more effort than it's worth.