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

Recommend Data.Foldable1 over Data.List.{maximum,minimum}{,By} #1576

Open
ysangkok opened this issue Feb 28, 2024 · 0 comments
Open

Recommend Data.Foldable1 over Data.List.{maximum,minimum}{,By} #1576

ysangkok opened this issue Feb 28, 2024 · 0 comments

Comments

@ysangkok
Copy link
Contributor

Now that these safe functions have been added, it would be nice if hlint could point out to me where I am using them instead of the partial ones in Data.List.

Would this belong in hlint or would it be confusing because GHC is now warning about head. It's kinda weird to have an error class (partial functions) of which sometimes the error is from GHC, and other times it is from hlint.

There is a compatibility package.

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

No branches or pull requests

1 participant