I have a producer pipe and I have used the print pipe. I would like to write the output to a file. If I use Control.Data.sinkFile, like
test2file = runPipe $ CB.sinkFile "testOutput" <+< traverseTree fn3
I get a type error:
Couldn't match expected type `Pipe
b0 void-0.5.8:Data.Void.Void m0 r0'
with actual type `Data.Conduit.Internal.Pipe
l0 Data.ByteString.Internal.ByteString o0 r1 m1 r1'
In the return type of a call of `sinkFile'
In the first argument of `(<+<)', namely `sinkFile "testOutput"'
How do I convert sinkFile to a pipe which can be composed. is there a Strict vs. Lazy question?