-
Notifications
You must be signed in to change notification settings - Fork 52
optionMaybe
doesn't propagate fail when used whiteSpace
#236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
4 tasks
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Hi-Angel
added a commit
to Hi-Angel/purescript-parsing
that referenced
this issue
Mar 1, 2025
The Parsing design implies that if input was consumed, it must propagate further unless `try` is used to reset that. Fixes: purescript-contrib#236
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Split from #235 (comment).
As discussed there,
whiteSpace
is declared astakeWhile isSpace
and it doesn't check forconsumed
flag, which results in the failure.To Reproduce
Expected behavior
Running this code should return
Left
with "test failure" (because it consumed the input before failing) instead ofRight
.The text was updated successfully, but these errors were encountered: