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 · 6 comments

Comments

Projects
None yet
2 participants
@jedesah
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

This comment has been minimized.

Show comment
Hide comment
@milessabin

milessabin Aug 25, 2014

Owner

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

Owner

milessabin commented Aug 25, 2014

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

@milessabin milessabin added this to the shapeless-2.1.0 milestone Aug 25, 2014

@jedesah

This comment has been minimized.

Show comment
Hide comment
@jedesah

jedesah Aug 26, 2014

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@milessabin

milessabin Aug 26, 2014

Owner

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

Owner

milessabin commented Aug 26, 2014

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

@jedesah

This comment has been minimized.

Show comment
Hide comment
@jedesah

jedesah Aug 26, 2014

Contributor

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)
.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@milessabin

milessabin Aug 27, 2014

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 :-)

Owner

milessabin commented Aug 27, 2014

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

This comment has been minimized.

Show comment
Hide comment
@jedesah

jedesah Aug 27, 2014

Contributor

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

Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment