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

Optimize SelectRange typeclass derivation #969

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

Ssstlis
Copy link

@Ssstlis Ssstlis commented Feb 27, 2020

Hi all!
Once i've find out the SelectRange is useful, but i don't understand why is this instances are so hard to derive (too much unnecessary recursive calling).
So i decide to optimize this derivation and it still works and looks good.

@milessabin
Copy link
Owner

@joroKr21 I'd appreciate your eyeballs on this :-)

@joroKr21
Copy link
Collaborator

joroKr21 commented Mar 2, 2020

LGTM but I'm not sure about the naming.

Copy link
Collaborator

@joroKr21 joroKr21 left a comment

Choose a reason for hiding this comment

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

Thanks, that's much simpler 👍

@joroKr21 joroKr21 added this to the shapeless-2.4.0 milestone Mar 2, 2020
@joroKr21
Copy link
Collaborator

joroKr21 commented Mar 2, 2020

@Ssstlis one more thing before merge, would you mind squashing all commits into one?

@Ssstlis
Copy link
Author

Ssstlis commented Mar 3, 2020

squashed and rebased

@joroKr21 joroKr21 merged commit 0936084 into milessabin:master Mar 3, 2020
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.

3 participants