-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Data structure methods #25
Comments
Certain things (like However, there's also the question of derived methods. At nescala @tpolecat, @non, some others (whose GitHub handles I don't know :( ), and I were discussing what options there might be to have derived methods available on data structures for free. It's always slightly annoyed me that in scalaz it's pretty ad hoc as to which derived type class methods are available on a given structure. I can't recall whether or not we came to a good solution. Maybe they remember? |
I also like defining the methods in the class because it gives a better documentation and no need of special import. however, what do we do for TC like |
@julien-truffaut that's a good question. Hopefully some good suggestions will come out of this discussion! |
I agree with @ceedubs -- I think concrete types should provide all the concrete implementations there type classes need. This can be a bit ugly but it has many benefits:
Of these concerns I think (2) is the most important. If we agree with this approach then it implies that at a minimum we should be adding |
@julien-truffaut seems like there in consensus here, do you think we need to do more with this issue? |
sure I think we all agree |
shall we implement type class methods (e.g.
map
,show
) on data structures in cats.data or shall we get them via ops implicit classes?The text was updated successfully, but these errors were encountered: