Gabriella439 / pipes-concurrency

Concurrency for the pipes ecosystem
BSD 3-Clause "New" or "Revised" License
43 stars 12 forks source link

Add a function to convert `Producer`s to `Input`s #15

Closed Gabriella439 closed 10 years ago

Gabriella439 commented 10 years ago

pipes-concurrency needs a function of type:

toInput :: Producer a IO () -> IO (Input a)
Gabriella439 commented 10 years ago

I've decided to reserve this function for my mvc library because doing it properly requires a type signature more like:

toInput :: Producer a IO () -> (Input a -> IO ()) -> IO ()

... and mvc simplifies this by providing the Managed type:

toInput :: Producer a IO () -> Managed (Input a)
bgamari commented 10 years ago

Has this happened?

Gabriella439 commented 10 years ago

I'll be releasing the mvc library soon. The main blocker is that I need to write up a post for it illustrating the philosophy behind it and how it ties into several theoretical patterns.