
Hello, I'm trying to catch up conduit 0.4. To pass requestBody of Request to ResponseSource of Response, we need to convert types as follows: Source (ResourceT IO) ByteString -> Source (ResourceT IO) (Flush Builder) The way which I could find is: src $= CL.map (Chunk . byteStringToBuilder) Is this a right way? Or, is there another proper way? Cheers, --Kazu

On Tue, Apr 3, 2012 at 5:07 PM, Kazu Yamamoto
Hello,
I'm trying to catch up conduit 0.4. To pass requestBody of Request to ResponseSource of Response, we need to convert types as follows:
Source (ResourceT IO) ByteString -> Source (ResourceT IO) (Flush Builder)
The way which I could find is:
src $= CL.map (Chunk . byteStringToBuilder)
Is this a right way? Or, is there another proper way?
Cheers,
--Kazu
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
Looks good to me. Michael
participants (2)
-
Kazu Yamamoto
-
Michael Snoyman