@@ -1,5 +1,5 @@
11-- |
2−-- Module : Streamly.Internal.Data.Array.Mut.Stream
2+-- Module : Streamly.Internal.Data.Stream.MutChunked
33-- Copyright : (c) 2019 Composewell Technologies
44-- License : BSD3-3-Clause
55-- Maintainer : streamly@composewell.com
@@ -8,7 +8,7 @@
88--
99-- Combinators to efficiently manipulate streams of mutable arrays.
1010--
11−module Streamly.Internal.Data.Array.Mut.Stream
11+module Streamly.Internal.Data.Stream.MutChunked
1212 (
1313 -- * Generation
1414 chunksOf
@@ -32,13 +32,13 @@ import Control.Monad (when)
3232import Data.Bifunctor (first)
3333import Data.Proxy (Proxy(..))
3434import Streamly.Internal.Data.Unbox (Unbox, sizeOf)
35−import Streamly.Internal.Data.Array.Mut.Type (MutArray(..))
35+import Streamly.Internal.Data.MutArray.Type (MutArray(..))
3636import Streamly.Internal.Data.Fold.Type (Fold(..))
3737import Streamly.Internal.Data.Parser (ParseError)
3838import Streamly.Internal.Data.Stream.StreamD.Type (Stream)
3939import Streamly.Internal.Data.Tuple.Strict (Tuple'(..))
4040
41−import qualified Streamly.Internal.Data.Array.Mut.Type as MArray
41+import qualified Streamly.Internal.Data.MutArray.Type as MArray
4242import qualified Streamly.Internal.Data.Fold.Type as FL
4343import qualified Streamly.Internal.Data.Parser as ParserD
4444import qualified Streamly.Internal.Data.Stream as D
@@ -92,7 +92,7 @@ packArraysChunksOf n (D.Stream step state) =
9292 step' gst (SpliceInitial st) = do
9393 when (n <= 0) $
9494 -- XXX we can pass the module string from the higher level API
95− error $ "Streamly.Internal.Data.Array.Mut.Type.packArraysChunksOf: the size of "
95+ error $ "Streamly.Internal.Data.MutArray.Type.packArraysChunksOf: the size of "
9696 ++ "arrays [" ++ show n ++ "] must be a natural number"
9797 r <- step gst st
9898 case r of
@@ -139,7 +139,7 @@ lpackArraysChunksOf n (Fold step1 initial1 extract1) =
139139 initial = do
140140 when (n <= 0) $
141141 -- XXX we can pass the module string from the higher level API
142− error $ "Streamly.Internal.Data.Array.Mut.Type.packArraysChunksOf: the size of "
142+ error $ "Streamly.Internal.Data.MutArray.Type.packArraysChunksOf: the size of "
143143 ++ "arrays [" ++ show n ++ "] must be a natural number"
144144
145145 r <- initial1
@@ -243,7 +243,7 @@ compactLEParserD n = ParserD.Parser step initial extract
243243 extract (Just buf) = return $ ParserD.Done 0 buf
244244
245245 functionPath =
246− "Streamly.Internal.Data.Array.Mut.Stream.compactLEParserD"
246+ "Streamly.Internal.Data.Stream.MutChunked.compactLEParserD"
247247
248248-- | Coalesce adjacent arrays in incoming stream to form bigger arrays of a
249249-- minimum specified size. Note that if all the arrays in the stream together
@@ -292,7 +292,7 @@ compactGEFold n = Fold step initial extract
292292 extract (Just buf) = return buf
293293
294294 functionPath =
295− "Streamly.Internal.Data.Array.Mut.Stream.compactGEFold"
295+ "Streamly.Internal.Data.Stream.MutChunked.compactGEFold"
296296
297297-- | Coalesce adjacent arrays in incoming stream to form bigger arrays of a
298298-- maximum specified size in bytes.