@@ -111,18 +111,18 @@ import Prelude hiding (read)
112import Streamly.Prelude (MonadAsync)
112import Streamly.Prelude (MonadAsync)
113import Streamly.Data.Fold (Fold)
113import Streamly.Data.Fold (Fold)
114−import Streamly.Internal.Data.Fold.Types (Fold2(..))
114+import Streamly.Internal.Data.Fold.Type (Fold2(..))
115−import Streamly.Internal.Data.Unfold.Types (Unfold(..))
115+import Streamly.Internal.Data.Unfold.Type (Unfold(..))
116−import Streamly.Internal.Data.Array.Foreign.Types
116+import Streamly.Internal.Data.Array.Foreign.Type
117 (Array(..), writeNUnsafe, defaultChunkSize , unsafeFreezeWithShrink)
117 (Array(..), writeNUnsafe, defaultChunkSize , unsafeFreezeWithShrink)
118−import Streamly.Internal.Data.Array.Foreign.Mut.Types (mutableArray)
118+import Streamly.Internal.Data.Array.Foreign.Mut.Type (mutableArray)
119import Streamly.Internal.Data.Stream.Serial (SerialT)
119import Streamly.Internal.Data.Stream.Serial (SerialT)
120import Streamly.Internal.Data.Stream.StreamK.Type (IsStream, mkStream)
120import Streamly.Internal.Data.Stream.StreamK.Type (IsStream, mkStream)
121import Streamly.Internal.Data.Array.Stream.Foreign (lpackArraysChunksOf)
121import Streamly.Internal.Data.Array.Stream.Foreign (lpackArraysChunksOf)
122-- import Streamly.String (encodeUtf8, decodeUtf8, foldLines)
122-- import Streamly.String (encodeUtf8, decodeUtf8, foldLines)
124import qualified Streamly.Data.Fold as FL
124import qualified Streamly.Data.Fold as FL
125−import qualified Streamly.Internal.Data.Fold.Types as FL
125+import qualified Streamly.Internal.Data.Fold.Type as FL
126import qualified Streamly.Internal.Data.Unfold as UF
126import qualified Streamly.Internal.Data.Unfold as UF
127import qualified Streamly.Internal.Data.Array.Foreign as IA
127import qualified Streamly.Internal.Data.Array.Foreign as IA
128import qualified Streamly.Internal.Data.Array.Stream.Foreign as AS
128import qualified Streamly.Internal.Data.Array.Stream.Foreign as AS
@@ -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.Data.Array.Foreign.Types.defaultChunkSize'. The
258+-- 'Streamly.Internal.Data.Array.Foreign.Type.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.Data.Array.Foreign.Types.defaultChunkSize'.
260+-- 'Streamly.Internal.Data.Array.Foreign.Type.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.Data.Array.Foreign.Types.defaultChunkSize'.
297+-- 'Streamly.Internal.Data.Array.Foreign.Type.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.Data.Array.Foreign.Types.defaultChunkSize' before writing.
414+-- up to 'Streamly.Internal.Data.Array.Foreign.Type.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.chunksOf2 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.Data.Array.Foreign.Types.defaultChunkSize' before writing
472+-- up to 'Streamly.Internal.Data.Array.Foreign.Type.defaultChunkSize' before writing
473-- to the IO device.
473-- to the IO device.
475-- @since 0.7.0
475-- @since 0.7.0