Skip to content

Use EmptyTuple instead of Unit in typeclass derivation docs #9431

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

Merged
merged 2 commits into from
Jul 27, 2020
Merged

Use EmptyTuple instead of Unit in typeclass derivation docs #9431

merged 2 commits into from
Jul 27, 2020

Conversation

ysthakur
Copy link
Contributor

Since EmptyTuple's being used instead of Unit, pattern matching won't work with Unit. Compiling the example from the type class derivation page results in an error.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@ShapelessCat
Copy link
Contributor

ShapelessCat commented Jul 26, 2020

@ysthakur I think you need to sign the CLA first.
Here is the link: https://www.lightbend.com/contribute/cla/scala

@ysthakur ysthakur marked this pull request as ready for review July 26, 2020 15:00
@ysthakur
Copy link
Contributor Author

Yup, I did that now. The "All contributors have signed the CLA" is a bit misleading - I didn't realize that it meant I had to sign it too.

@odersky
Copy link
Contributor

odersky commented Jul 27, 2020

Thanks for the fixes!

@odersky odersky merged commit 9a7ec05 into scala:master Jul 27, 2020
@ysthakur ysthakur deleted the patch-1 branch August 8, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants