-
Notifications
You must be signed in to change notification settings - Fork 15
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
Examples of multiple constraints? #46
Comments
Good question. I think one could use a higher-kinded version of the
Would that work for you? |
That worked great, thank you! I had tried the one from the |
Done in 2.0.5.0! |
I've noticed in the code that the convenience functions like
bmapC
seem to let you specify a constraint via type applications likebmapC @Show
but I haven't found any examples of specifying multiple constraints such asShow
andEq
. I haven't really found a good solution for this because type applications doesn't seem to like specifying multiple constraints with one type application. Combining multiple constraints into a type alias with ConstraintKinds doesn't seem to work easier because they don't get partially applied in the same way that individual constraints do. I'm very hesitant to define an entirely new class just for a specific combination of 2 or more classes. Am I missing a better way to do this?The text was updated successfully, but these errors were encountered: