Safe Haskell | None |
---|---|
Language | Haskell98 |
- intoLazyBytes :: Fold1 ByteString e ByteString
- drainHandle :: Fold1 ByteString Void r -> ChunkSize -> Handle -> IO r
- drainHandleFallibly :: Fold1 ByteString e r -> ChunkSize -> Handle -> IO (Either e r)
- data ChunkSize
- chunkSize :: Int -> ChunkSize
- chunkSizeDefault :: ChunkSize
Collecting input
intoLazyBytes :: Fold1 ByteString e ByteString Source
Collect strict ByteString
s into a lazy ByteString
.
>>>
PT.fold1 intoLazyBytes (mapM_ yield ["aa","bb","cc"])
("aabbcc",())
Reading from handles
drainHandle :: Fold1 ByteString Void r -> ChunkSize -> Handle -> IO r Source
drainHandleFallibly :: Fold1 ByteString e r -> ChunkSize -> Handle -> IO (Either e r) Source
Maximum chunk size