-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add dropWhileEnd, takeWhileEnd, strip #121
Conversation
Note: this should address #19. |
@dcoutts, it seems like this would be rather nice to have. |
Lazy Text has both The |
A related PR is #155 adding |
What should we do here? This has been open for 2 years and I'd like to delete my |
Gentle ping |
@dcoutts ping! |
+1 for these; anything I (as a community member) could do to help move this along? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. We can raise a separate issue to discuss an implementation of {take,drop}WhileEnd
on lazy ByteString
s, but I do not think this should be a blocker for merging. CC @cartazio
@nmattia could you please update changelog? |
@Bodigrim done, apologies about the delay! |
Fixed conflicts, shall we merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests pass locally too. Thanks @nmattia!
Updated changelog! @sjakobi anything else I can do? |
@nmattia I'll merge this, once we get 0.10.10.1 out (hopefully today). |
Merged, thanks for your patience! |
A few notes:
strip
).Data.ByteString.Char8
is trying to follow the functions onString
: for instance, there is nostrip
function onString
. Let me know whether exporting thestrip
anddropSpace
functions is the right thing to do or not (though my motivation for addingdropWhileEnd
andtakeWhileEnd
is to havestrip
).dropWhileEnd
andtakeWhileEnd
on lazy bytestrings, because (1) I don't know how much sense it makes and (2) I wouldn't know how to do that efficiently, for some definition of efficiently.