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 documentation around TypeClass derivation #219

Open
jedesah opened this issue Aug 25, 2014 · 7 comments
Open

Add documentation around TypeClass derivation #219

jedesah opened this issue Aug 25, 2014 · 7 comments

Comments

@jedesah
Copy link
Contributor

jedesah commented Aug 25, 2014

The documentation around typeclass derivation points to a blog post where the derivation process is explained in a very clear manner. The problem is that this blog post mentions that there will be a part 2 that deals with the notion of co-product and how it relates to typeclass derivation. As far as my understanding goes, this blog post never made it out and there is no ressource to find more about the emptycoproduct and coproduct methods that need to need to be implemented in order to derive TypeClassCompanion

@milessabin
Copy link
Owner

Fair comment. Are you able to make any headway with the TypeClass demos in the examples subproject? Or the examples in the tests?

@jedesah
Copy link
Contributor Author

jedesah commented Aug 26, 2014

I have tried but still have a little bit of trouble understanding the purpose of those two methods. I have got them to somewhat work (mostly by being a copy cat) but would prefer a deep understanding of what is going on.

@milessabin
Copy link
Owner

OK, this might be better handled by a question on Stack Overflow.

@jedesah
Copy link
Contributor Author

jedesah commented Aug 26, 2014

To be honest, I sort of feel like it should be added to the docs. Maybe not
the overview page, but some page that explains the type class derivation
process more in detail, but if you prefer I can go ahed and ask the
question on SO.

Once I understand what is going on, maybe I can write that page if it
stands a chance of being merged.

On Tue, Aug 26, 2014 at 12:27 AM, Miles Sabin notifications@github.com
wrote:

OK, this might be better handled by a question on Stack Overflow.


Reply to this email directly or view it on GitHub
#219 (comment)
.

@milessabin
Copy link
Owner

I was suggesting posting on SO to get a worked out answer. That might form the basis of an addition to the scaladoc or wiki. All contributions stand a very good chance of being merged :-)

@jedesah
Copy link
Contributor Author

jedesah commented Aug 27, 2014

Oh! We are in agreement then! :-)

Here is the SO question (hopefully I expressed it correctly):
http://stackoverflow.com/questions/25517069/what-is-the-purpose-of-the-emptycoproduct-and-coproduct-methods-of-the-typeclass

@joroKr21
Copy link
Collaborator

More detailed info: https://underscore.io/books/shapeless-guide/

@joroKr21 joroKr21 modified the milestones: shapeless-2.4.0, shapeless-2.5.0 Mar 16, 2020
@joroKr21 joroKr21 removed this from the shapeless-2.5.0 milestone Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants