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

How to ignore result of a parser? #2

Open
aloussase opened this issue Dec 3, 2023 · 1 comment
Open

How to ignore result of a parser? #2

aloussase opened this issue Dec 3, 2023 · 1 comment

Comments

@aloussase
Copy link

For example, in Haskell I can do something like:

string "Game " >> digits ...

I tried using ignore, but it doesn't seem to do what I want:

ignore (string "Game ") |> \_ -> digits ...

What would be the correct way to do it?

@lukewilliamboswell
Copy link
Owner

I just published a new release to update the documentation with a lot of worked examples.

Short answer is you can use skip.

Can you please look at the docs for this pacakge and let me know if this is easy enough to find the answer to your question in there?

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

No branches or pull requests

2 participants