Running a consumer inside a pipe
问题 I need to compose a consumer and a pipe so that the output of the consumer would feed the input of the pipe. I guess this could be solved with a combinator like this: Consumer i m r -> (r -> Producer o m r') -> Pipe i o m r' or this: Consumer i m i' -> Pipe i' o m r -> Pipe i o m r or a lifting function like the following: Consumer i m r -> Pipe i o m r or like this: Consumer i m o -> Pipe i o m r I tried doing consumer >~ pipe without a success. So how to approach this? 回答1: Something