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

Add a Fold monad instance? #2718

Open
harendra-kumar opened this issue Feb 2, 2024 · 0 comments
Open

Add a Fold monad instance? #2718

harendra-kumar opened this issue Feb 2, 2024 · 0 comments
Milestone

Comments

@harendra-kumar
Copy link
Member

Since Parser has a monad instance, Fold can also have one. We need to measure the performance and check at what point the direct style Fold/Parser monad becomes worse in performance compared to CPS. We can potentially have a static analysis tool to warn against heavier use of these.

Also, we can add a FoldK newtype wrapper over ParserK. If there is a significant difference in performance we can consider using a custom implementation of FoldK.

@harendra-kumar harendra-kumar added this to the 0.11.0 milestone Feb 2, 2024
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

1 participant