-
Notifications
You must be signed in to change notification settings - Fork 69
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
Additional pipes prelude functions #174
Comments
Note that
It's a little annoying, by the way, that the generalization of
rather than
|
In addition to what @michaelt said there is |
How about intersperse :: Monad m => a -> Producer' a m r -> Producer' a m r |
@mitchellwrosen You can implement interperse x p = for p (\y -> do yield x; yield y) >-> Pipes.Prelude.drop 1 |
I didn't see this before, but I just added |
Would you accept
catMaybes
andmapMaybe
functions that are specialized to work on pipes? They would have the following type signatures:Also worth considering would be
lefts
andrights
, which would be:The text was updated successfully, but these errors were encountered: