What is pipes/conduit trying to solve
Lazy IO Lazy IO works like this readFile :: FilePath -> IO ByteString where ByteString is guaranteed to only be read chunk-by-chunk. To do so we could (almost) write — given `readChunk` which reads a chunk beginning at n readChunk :: FilePath -> Int -> IO (Int, ByteString) readFile fp = readChunks 0 where readChunks … Read more