@@ -122,18 +122,18 @@ import Prelude hiding (read)
122122import Streamly.Internal.Data.Fold (Fold)
123123import Streamly.Internal.Data.Refold.Type (Refold(..))
124124import Streamly.Internal.Data.Unfold.Type (Unfold(..))
125−import Streamly.Internal.Data.Array.Unboxed.Type
125+import Streamly.Internal.Data.Array.Type
126126 (Array(..), writeNUnsafe, unsafeFreezeWithShrink, byteLength)
127127import Streamly.Internal.Data.Stream.Type (Stream)
128−import Streamly.Internal.Data.Array.Unboxed.Stream (lpackArraysChunksOf)
128+import Streamly.Internal.Data.Array.Stream (lpackArraysChunksOf)
129129-- import Streamly.String (encodeUtf8, decodeUtf8, foldLines)
130130import Streamly.Internal.System.IO (defaultChunkSize)
131131
132132import qualified Streamly.Data.Fold as FL
133−import qualified Streamly.Data.Array.Unboxed as A
134−import qualified Streamly.Internal.Data.Array.Unboxed.Type as A
135−import qualified Streamly.Internal.Data.Array.Unboxed.Stream as AS
136−import qualified Streamly.Internal.Data.Array.Unboxed.Mut.Type as MArray
133+import qualified Streamly.Data.Array as A
134+import qualified Streamly.Internal.Data.Array.Type as A
135+import qualified Streamly.Internal.Data.Array.Stream as AS
136+import qualified Streamly.Internal.Data.Array.Mut.Type as MArray
137137import qualified Streamly.Internal.Data.Refold.Type as Refold
138138import qualified Streamly.Internal.Data.Fold.Type as FL(refoldMany)
139139import qualified Streamly.Internal.Data.Stream as S
@@ -143,12 +143,12 @@ import qualified Streamly.Internal.Data.Unfold as UF
143143import qualified Streamly.Internal.Data.Stream.StreamK.Type as K (mkStream)
144144
145145-- $setup
146−-- >>> import qualified Streamly.Data.Array.Unboxed as Array
146+-- >>> import qualified Streamly.Data.Array as Array
147147-- >>> import qualified Streamly.Data.Fold as Fold
148148-- >>> import qualified Streamly.Data.Unfold as Unfold
149149-- >>> import qualified Streamly.Data.Stream as Stream
150150--
151−-- >>> import qualified Streamly.Internal.Data.Array.Unboxed.Type as Array (writeNUnsafe)
151+-- >>> import qualified Streamly.Internal.Data.Array.Type as Array (writeNUnsafe)
152152-- >>> import qualified Streamly.Internal.Data.Stream as Stream
153153-- >>> import qualified Streamly.Internal.Data.Unfold as Unfold (first)
154154-- >>> import qualified Streamly.Internal.FileSystem.Handle as Handle
@@ -306,9 +306,9 @@ readChunks = readChunksWith defaultChunkSize
306306
307307-- | Unfolds a handle into a stream of 'Word8' arrays. Requests to the IO
308308-- device are performed using a buffer of size
309−-- 'Streamly.Internal.Data.Array.Unboxed.Type.defaultChunkSize'. The
309+-- 'Streamly.Internal.Data.Array.Type.defaultChunkSize'. The
310310-- size of arrays in the resulting stream are therefore less than or equal to
311−-- 'Streamly.Internal.Data.Array.Unboxed.Type.defaultChunkSize'.
311+-- 'Streamly.Internal.Data.Array.Type.defaultChunkSize'.
312312--
313313-- >>> chunkReader = Unfold.first IO.defaultChunkSize Handle.chunkReaderWith
314314--
@@ -352,7 +352,7 @@ readWith size h = AS.concat $ readChunksWith size h
352352
353353-- | Unfolds a file handle into a byte stream. IO requests to the device are
354354-- performed in sizes of
355−-- 'Streamly.Internal.Data.Array.Unboxed.Type.defaultChunkSize'.
355+-- 'Streamly.Internal.Data.Array.Type.defaultChunkSize'.
356356--
357357-- >>> reader = Unfold.many Array.reader chunkReader
358358--
@@ -434,7 +434,7 @@ putBytesWith n h m = putChunks h $ S.arraysOf n m
434434-- putBytesWith n h m = putChunks h $ AS.arraysOf n m
435435
436436-- | Write a byte stream to a file handle. Accumulates the input in chunks of
437−-- up to 'Streamly.Internal.Data.Array.Unboxed.Type.defaultChunkSize' before writing.
437+-- up to 'Streamly.Internal.Data.Array.Type.defaultChunkSize' before writing.
438438--
439439-- NOTE: This may perform better than the 'write' fold, you can try this if you
440440-- need some extra perf boost.
@@ -531,7 +531,7 @@ writerWith n =
531531 FL.refoldMany (FL.take n $ writeNUnsafe n) chunkWriter
532532
533533-- | Write a byte stream to a file handle. Accumulates the input in chunks of
534−-- up to 'Streamly.Internal.Data.Array.Unboxed.Type.defaultChunkSize' before writing
534+-- up to 'Streamly.Internal.Data.Array.Type.defaultChunkSize' before writing
535535-- to the IO device.
536536--
537537-- >>> write = Handle.writeWith IO.defaultChunkSize