@@ -75,7 +75,7 @@ module Streamly.FileSystem.FD
7575 -- , readUtf8
7676 -- , readLines
7777 -- , readFrames
78− , readByChunksUpto
78+ , readInChunksOf
7979
8080 -- -- * Array Read
8181 -- , readArrayUpto
@@ -321,13 +321,13 @@ readArrays = readArraysOfUpto defaultChunkSize
321321-- read requests at the same time. For serial case we can use async IO. We can
322322-- also control the read throughput in mbps or IOPS.
323323
324−-- | @readByChunksUpto chunkSize handle@ reads a byte stream from a file handle,
324+-- | @readInChunksOf chunkSize handle@ reads a byte stream from a file handle,
325325-- reads are performed in chunks of up to @chunkSize@. The stream ends as soon
326326-- as EOF is encountered.
327327--
328−{-# INLINE readByChunksUpto #-}
329−readByChunksUpto :: (IsStream t, MonadIO m) => Int -> Handle -> t m Word8
330−readByChunksUpto chunkSize h = AS.flatten $ readArraysOfUpto chunkSize h
328+{-# INLINE readInChunksOf #-}
329+readInChunksOf :: (IsStream t, MonadIO m) => Int -> Handle -> t m Word8
330+readInChunksOf chunkSize h = AS.flatten $ readArraysOfUpto chunkSize h
331331
332332-- TODO
333333-- read :: (IsStream t, MonadIO m, Storable a) => Handle -> t m a