-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove listToMaybe
#206
Comments
Agreed, but
Maybe we should rename |
Ah, I rather compared Additionally to the functions you mentioned, there is Maybe it's really worth having a renamed concrete I personally think that having even 3 |
Ah right of course! Hackage's "search box" feature wasn't being very friendly 😅
Absolutely, given that we have |
Problem: we export `listToMaybe` from `Data.Maybe`. It makes no sense because we have `safeHead` in `Universum.Container` which does the same thing. Solution: remove `listToMaybe` from export list.
Problem: we export `listToMaybe` from `Data.Maybe`. It makes no sense because we have `safeHead` in `Universum.Container` which does the same thing. Solution: remove `listToMaybe` from export list.
It was funny to learn that we have yet another
head
here which is calledlistToMaybe
.I think this function isn't worth living as soon as its exact behavior is not totally clear from its name (what happens if a list has more than one element?)
The text was updated successfully, but these errors were encountered: