Skip to content
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

withRecovery #223

Open
jamesdbrock opened this issue Apr 19, 2023 · 2 comments · May be fixed by #224
Open

withRecovery #223

jamesdbrock opened this issue Apr 19, 2023 · 2 comments · May be fixed by #224

Comments

@jamesdbrock
Copy link
Member

recoverWith will only fire the recovery parser on a failure, and as for the recovery parser, these things are usually incredibly simple, aggressively so.

Originally posted by @Violet-Codes in #222 (comment)

Already discussed in the above issue, but let's open a separate issue for creating a recoverWith or withRecovery function, because that could be supplied independent of the multiple-error feature.

See https://hackage.haskell.org/package/megaparsec-9.3.0/docs/Text-Megaparsec.html#v:withRecovery

@jamesdbrock
Copy link
Member Author

See also mrkkrp/megaparsec#80

@jamesdbrock jamesdbrock linked a pull request Apr 19, 2023 that will close this issue
4 tasks
@Violet-Codes
Copy link

withRecovery is only going to be a useful notion if you can do something with the errors, i.e. bundle or give context too them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants