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

Comparison with shapeless-scalacheck? #2

Open
FranklinChen opened this issue Jan 26, 2015 · 2 comments
Open

Comparison with shapeless-scalacheck? #2

FranklinChen opened this issue Jan 26, 2015 · 2 comments
Labels

Comments

@FranklinChen
Copy link

I'm curious how this library differences from shapeless-scalacheck. Maybe you can add a note on the difference for those who already use that?

@alexarchambault
Copy link
Owner

You're right, I was thinking at the beginning to just submit scalacheck-shapeless to shapeless-contrib (typelevel/shapeless-contrib#28), but it finally remained a separate project. I'm checking about the status of shapeless-contrib, and I think I'll add back a mention about it in the README once I'll know more.

@alexarchambault
Copy link
Owner

For now, the main difference is that scalacheck-shapeless depends on more recent versions of both shapeless (2.1-RC1) and scalacheck (1.12.1).

The coproduct support in scalacheck-shapeless is also more finely tuned, as all cases of the coproduct are given the same weight, which doesn't seem to be the case in shapeless-contrib.

The internals of both projects differ too: scalacheck-shapeless uses Lazy, which was added in shapeless 2.1, whereas shapeless-contrib uses TypeClass, which is less flexible than Lazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants