Hello! I'm new to Roc so let me know if this is out of place or something. I'm trying to use backpassing, but consistently get "Indent ends after expression" errors. For example:
I am partway through parsing an expression, but I got stuck here:
29│ f = \x -> y <- Result.try (parse x)
30│ Ok y
^
That is interesting to parse. Does something like this work:
f = \x ->
y <- Result.try (parse x)
Ok y
I assume backpassing needs its own line
Ah, that does fix the problem, thanks! "Backpassing needs its own line" definitely seems like the case
Last updated: Jul 05 2025 at 12:14 UTC