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

More general MonadAccum instance missing #152

Open
turion opened this issue Jun 7, 2024 · 1 comment
Open

More general MonadAccum instance missing #152

turion opened this issue Jun 7, 2024 · 1 comment

Comments

@turion
Copy link

turion commented Jun 7, 2024

There is an instance Monoid w => MonadAccum w (AccumT w Identity):

instance (Monoid w) => MonadAccum w (AccumT w Identity) where

But a more general instance that should exist would be:

instance (Monoid w, Monad m) => MonadAccum w (AccumT w m)`
@turion
Copy link
Author

turion commented Jun 7, 2024

Happy to send a PR if you want :)

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