@@ -113,7 +113,7 @@ import Streamly (MonadAsync)
113import Streamly.Data.Fold (Fold)
113import Streamly.Data.Fold (Fold)
114import Streamly.Internal.Data.Fold.Types (Fold2(..))
114import Streamly.Internal.Data.Fold.Types (Fold2(..))
115import Streamly.Internal.Data.Unfold.Types (Unfold(..))
115import Streamly.Internal.Data.Unfold.Types (Unfold(..))
116−import Streamly.Internal.Memory.Array.Types
116+import Streamly.Internal.Data.Array.Storable.Foreign.Types
117 (Array(..), writeNUnsafe, defaultChunkSize, lpackArraysChunksOf
117 (Array(..), writeNUnsafe, defaultChunkSize, lpackArraysChunksOf
118 , unsafeFreezeWithShrink)
118 , unsafeFreezeWithShrink)
119import Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types (mutableArray)
119import Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types (mutableArray)
@@ -255,9 +255,9 @@ getBytes = toBytes stdin
256-- | Unfolds a handle into a stream of 'Word8' arrays. Requests to the IO
256-- | Unfolds a handle into a stream of 'Word8' arrays. Requests to the IO
257-- device are performed using a buffer of size
257-- device are performed using a buffer of size
258−-- 'Streamly.Internal.Memory.Array.Types.defaultChunkSize'. The
258+-- 'Streamly.Internal.Data.Array.Storable.Foreign.Types.defaultChunkSize'. The
259-- size of arrays in the resulting stream are therefore less than or equal to
259-- size of arrays in the resulting stream are therefore less than or equal to
260−-- 'Streamly.Internal.Memory.Array.Types.defaultChunkSize'.
260+-- 'Streamly.Internal.Data.Array.Storable.Foreign.Types.defaultChunkSize'.
262-- @since 0.7.0
262-- @since 0.7.0
263{-# INLINE readChunks #-}
263{-# INLINE readChunks #-}
@@ -294,7 +294,7 @@ toBytesWithBufferOf chunkSize h = AS.concat $ toChunksWithBufferOf chunkSize h
295-- | Unfolds a file handle into a byte stream. IO requests to the device are
295-- | Unfolds a file handle into a byte stream. IO requests to the device are
296-- performed in sizes of
296-- performed in sizes of
297−-- 'Streamly.Internal.Memory.Array.Types.defaultChunkSize'.
297+-- 'Streamly.Internal.Data.Array.Storable.Foreign.Types.defaultChunkSize'.
299-- @since 0.7.0
299-- @since 0.7.0
300{-# INLINE read #-}
300{-# INLINE read #-}
@@ -411,7 +411,7 @@ fromBytesWithBufferOf n h m = fromChunks h $ S.arraysOf n m
411-- > write = 'writeWithBufferOf' A.defaultChunkSize
411-- > write = 'writeWithBufferOf' A.defaultChunkSize
413-- | Write a byte stream to a file handle. Accumulates the input in chunks of
413-- | Write a byte stream to a file handle. Accumulates the input in chunks of
414−-- up to 'Streamly.Internal.Memory.Array.Types.defaultChunkSize' before writing.
414+-- up to 'Streamly.Internal.Data.Array.Storable.Foreign.Types.defaultChunkSize' before writing.
416-- NOTE: This may perform better than the 'write' fold, you can try this if you
416-- NOTE: This may perform better than the 'write' fold, you can try this if you
417-- need some extra perf boost.
417-- need some extra perf boost.
@@ -469,7 +469,7 @@ writeWithBufferOf2 n = FL.lchunksOf2 n (writeNUnsafe n) writeChunks2
469-- > write = 'writeWithBufferOf' A.defaultChunkSize
469-- > write = 'writeWithBufferOf' A.defaultChunkSize
471-- | Write a byte stream to a file handle. Accumulates the input in chunks of
471-- | Write a byte stream to a file handle. Accumulates the input in chunks of
472−-- up to 'Streamly.Internal.Memory.Array.Types.defaultChunkSize' before writing
472+-- up to 'Streamly.Internal.Data.Array.Storable.Foreign.Types.defaultChunkSize' before writing
473-- to the IO device.
473-- to the IO device.
475-- @since 0.7.0
475-- @since 0.7.0