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

more hints about eliminating Data.Foldable.toList #1620

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jvoigtlaender
Copy link
Contributor

Essentially a continuation of the already merged #1569.

One thing I'm unsure about: Would these hints also catch/apply to Data.Set.toList calls (based on the Foldable instance for Set)? Or would it be necessary to duplicate all these hints (the ones from the previous issue and these ones here) for Data.Set.toList?

Copy link
Collaborator

@zliu41 zliu41 left a comment

Choose a reason for hiding this comment

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

Looks good, but please update hints.md. See README for instructions.

Would these hints also catch/apply to Data.Set.toList calls

No - HLint does not know Data.Set.toList and Data.Foldable.toList are the same toList.

@jvoigtlaender
Copy link
Contributor Author

I have updated hints.md.

About this:

No - HLint does not know Data.Set.toList and Data.Foldable.toList are the same toList.

Would it then make sense to duplicate all the hints from #1569 as well as the ones from this PR here, into versions for Data.Set.toList in place of Data.Foldable.toList?

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.

2 participants