Skip to content

Bool in Data.List #263

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

Closed
mechvel opened this issue Apr 2, 2018 · 2 comments
Closed

Bool in Data.List #263

mechvel opened this issue Apr 2, 2018 · 2 comments

Comments

@mechvel
Copy link
Contributor

mechvel commented Apr 2, 2018

Data.List.Base has filter based on Decidable P (which I like),
but span, dropWhile and some others still base on Bool.
This looks strange.

@MatthewDaggitt
Copy link
Contributor

I agree. They should be changed to use predicates as well.

@MatthewDaggitt
Copy link
Contributor

Closed with 80d49dc. As with filter and partition left the boolean versions in to help backwards compatibility for those who are determined not to use the better versions.

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

No branches or pull requests

2 participants