@@ -81,7 +81,7 @@ module Streamly.FileSystem.Handle
81 -- , writeUtf8
81 -- , writeUtf8
82 -- , writeUtf8ByLines
82 -- , writeUtf8ByLines
83 -- , writeByFrames
83 -- , writeByFrames
84− , writeByChunksOf
84+ , writeInChunksOf
86 -- -- * Array Write
86 -- -- * Array Write
87 , writeArray
87 , writeArray
@@ -291,16 +291,16 @@ writeArraysPackedUpto n h xs = writeArrays h $ AS.compact n xs
291-- do not want buffering to occur at GHC level as well. Same thing applies to
291-- do not want buffering to occur at GHC level as well. Same thing applies to
292-- writes as well.
292-- writes as well.
294−-- | @writeByChunksOf chunkSize handle stream@ writes @stream@ to @handle@ in
294+-- | @writeInChunksOf chunkSize handle stream@ writes @stream@ to @handle@ in
295-- chunks of @chunkSize@. A write is performed to the IO device as soon as we
295-- chunks of @chunkSize@. A write is performed to the IO device as soon as we
296-- collect the required input size.
296-- collect the required input size.
298-- @since 0.7.0
298-- @since 0.7.0
299−{-# INLINE writeByChunksOf #-}
299+{-# INLINE writeInChunksOf #-}
300−writeByChunksOf :: MonadIO m => Int -> Handle -> SerialT m Word8 -> m ()
300+writeInChunksOf :: MonadIO m => Int -> Handle -> SerialT m Word8 -> m ()
301−writeByChunksOf n h m = writeArrays h $ AS.arraysOf n m
301+writeInChunksOf n h m = writeArrays h $ AS.arraysOf n m
303−-- > write = 'writeByChunksOf' A.defaultChunkSize
303+-- > write = 'writeInChunksOf' A.defaultChunkSize
305-- | Write a byte stream to a file handle. Combines the bytes in chunks of
305-- | Write a byte stream to a file handle. Combines the bytes in chunks of
306-- up to 'A.defaultChunkSize' before writing.
306-- up to 'A.defaultChunkSize' before writing.
@@ -308,7 +308,7 @@ writeByChunksOf n h m = writeArrays h $ AS.arraysOf n m
308-- @since 0.7.0
308-- @since 0.7.0
309{-# INLINE write #-}
309{-# INLINE write #-}
310write :: MonadIO m => Handle -> SerialT m Word8 -> m ()
310write :: MonadIO m => Handle -> SerialT m Word8 -> m ()
311−write = writeByChunksOf defaultChunkSize
311+write = writeInChunksOf defaultChunkSize
314{-# INLINE write #-}
314{-# INLINE write #-}