@@ -41,8 +41,8 @@ module Streamly.Internal.FileSystem.Handle
4141 , writeInChunksOf
4242
4343 -- Byte stream write (Streams)
44− , writeS
45− , writeSInChunksOf
44+ , fromStream
45+ , fromStreamInChunksOf
4646
4747 -- -- * Array Write
4848 , writeArray
@@ -50,8 +50,8 @@ module Streamly.Internal.FileSystem.Handle
5050 , writeArraysInChunksOf
5151
5252 -- -- * Array stream Write
53− , writeSArrays
54− , writeSArraysInChunksOf
53+ , fromStreamArrays
54+ , fromStreamArraysInChunksOf
5555
5656 -- -- * Random Access (Seek)
5757 -- -- | Unlike the streaming APIs listed above, these APIs apply to devices or
@@ -244,31 +244,31 @@ writeArray h Array{..} = withForeignPtr aStart $ \p -> hPutBuf h p aLen
244244-- | Write a stream of arrays to a handle.
245245--
246246-- @since 0.7.0
247−{-# INLINE writeSArrays #-}
248−writeSArrays :: (MonadIO m, Storable a)
247+{-# INLINE fromStreamArrays #-}
248+fromStreamArrays :: (MonadIO m, Storable a)
249249 => Handle -> SerialT m (Array a) -> m ()
250−writeSArrays h m = S.mapM_ (liftIO . writeArray h) m
250+fromStreamArrays h m = S.mapM_ (liftIO . writeArray h) m
251251
252−-- | @writeArraysPackedUpto chunkSize handle stream@ writes a stream of arrays
252+-- | @fromStreamArraysInChunksOf chunkSize handle stream@ writes a stream of arrays
253253-- to @handle@ after coalescing the adjacent arrays in chunks of @chunkSize@.
254254-- The chunk size is only a maximum and the actual writes could be smaller as
255255-- we do not split the arrays to fit exactly to the specified size.
256256--
257257-- @since 0.7.0
258−{-# INLINE writeSArraysInChunksOf #-}
259−writeSArraysInChunksOf :: (MonadIO m, Storable a)
258+{-# INLINE fromStreamArraysInChunksOf #-}
259+fromStreamArraysInChunksOf :: (MonadIO m, Storable a)
260260 => Int -> Handle -> SerialT m (Array a) -> m ()
261−writeSArraysInChunksOf n h xs = writeSArrays h $ AS.compact n xs
261+fromStreamArraysInChunksOf n h xs = fromStreamArrays h $ AS.compact n xs
262262
263−-- | @writeSInChunksOf chunkSize handle stream@ writes @stream@ to @handle@ in
263+-- | @fromStreamInChunksOf chunkSize handle stream@ writes @stream@ to @handle@ in
264264-- chunks of @chunkSize@. A write is performed to the IO device as soon as we
265265-- collect the required input size.
266266--
267267-- @since 0.7.0
268−{-# INLINE writeSInChunksOf #-}
269−writeSInChunksOf :: MonadIO m => Int -> Handle -> SerialT m Word8 -> m ()
270−writeSInChunksOf n h m = writeSArrays h $ S.arraysOf n m
271−-- writeSInChunksOf n h m = writeSArrays h $ AS.arraysOf n m
268+{-# INLINE fromStreamInChunksOf #-}
269+fromStreamInChunksOf :: MonadIO m => Int -> Handle -> SerialT m Word8 -> m ()
270+fromStreamInChunksOf n h m = fromStreamArrays h $ S.arraysOf n m
271+-- fromStreamInChunksOf n h m = fromStreamArrays h $ AS.arraysOf n m
272272
273273-- > write = 'writeInChunksOf' A.defaultChunkSize
274274--
@@ -279,9 +279,9 @@ writeSInChunksOf n h m = writeSArrays h $ S.arraysOf n m
279279-- need some extra perf boost.
280280--
281281-- @since 0.7.0
282−{-# INLINE writeS #-}
283−writeS :: MonadIO m => Handle -> SerialT m Word8 -> m ()
284−writeS = writeSInChunksOf defaultChunkSize
282+{-# INLINE fromStream #-}
283+fromStream :: MonadIO m => Handle -> SerialT m Word8 -> m ()
284+fromStream = fromStreamInChunksOf defaultChunkSize
285285
286286-- | Write a stream of arrays to a handle.
287287--