Gabriella439 / pipes

Compositional pipelines
BSD 3-Clause "New" or "Revised" License
487 stars 72 forks source link

Some useful additions #148

Closed FranklinChen closed 9 years ago

FranklinChen commented 9 years ago

I started using Pipes and love it. I suggest some useful additions that I needed to write up for my own use. I'm curious about why the focus on returning () when one might as well return something useful. In my case, I'm using Pipes to do computations that return something at the end, while reporting on progress.

stdoutLn' :: MonadIO m => Consumer' String m r
toListM' :: Monad m => Producer a m r -> m ([a], r)
Gabriella439 commented 9 years ago

I'm definitely in favor of adding both. Could you submit a pull request to add these?

Gabriella439 commented 9 years ago

Never mind! I found time to do this myself. Thanks for the suggestion!

FranklinChen commented 9 years ago

Gack, I was going to get around to this, thanks! :-)

Gabriella439 commented 9 years ago

You're welcome! :)