@@ -343,12 +343,12 @@ readChunks = UF.supplyFirst defaultChunkSize readChunksWithBufferOf
343-- | Unfolds the tuple @(bufsize, handle)@ into a byte stream, read requests
343-- | Unfolds the tuple @(bufsize, handle)@ into a byte stream, read requests
344-- to the IO device are performed using buffers of @bufsize@.
344-- to the IO device are performed using buffers of @bufsize@.
346−-- >>> readWithBufferOf = Unfold.many Handle.readChunksWithBufferOf Array.read
346+-- >>> readWithBufferOf = Unfold.many Array.read Handle.readChunksWithBufferOf
348-- @since 0.7.0
348-- @since 0.7.0
349{-# INLINE readWithBufferOf #-}
349{-# INLINE readWithBufferOf #-}
350readWithBufferOf :: MonadIO m => Unfold m (Int, Handle) Word8
350readWithBufferOf :: MonadIO m => Unfold m (Int, Handle) Word8
351−readWithBufferOf = UF.many readChunksWithBufferOf A.read
351+readWithBufferOf = UF.many A.read readChunksWithBufferOf
353-- | @toBytesWithBufferOf bufsize handle@ reads a byte stream from a file
353-- | @toBytesWithBufferOf bufsize handle@ reads a byte stream from a file
354-- handle, reads are performed in chunks of up to @bufsize@.
354-- handle, reads are performed in chunks of up to @bufsize@.
@@ -373,7 +373,7 @@ toBytesWithBufferOf size h = AS.concat $ toChunksWithBufferOf size h
373-- @since 0.7.0
373-- @since 0.7.0
374{-# INLINE read #-}
374{-# INLINE read #-}
375read :: MonadIO m => Unfold m Handle Word8
375read :: MonadIO m => Unfold m Handle Word8
376−read = UF.many readChunks A.read
376+read = UF.many A.read readChunks
378-- | Generate a byte stream from a file 'Handle'.
378-- | Generate a byte stream from a file 'Handle'.