on master help sign in
Stop exporting MutByteArray from MutArray module
commit08e733d16dec4a43b9d8eb150f4a2e8f5c867b0e authorHarendra Kumar <harendra@composewell.com> dateSun 31 Dec 2023, 04:53 (3 years ago) parentb19e108
4 files changed+5−6
core/src/Streamly/Internal/Data/Array/Stream.hs+2−1 core/src/Streamly/Internal/Data/Array/Type.hs+2−1 core/src/Streamly/Internal/Data/MutArray/Type.hs−3 core/src/Streamly/Internal/Unicode/Stream.hs+1−1
core/src/Streamly/Internal/Data/Array/Stream.hs+2−1
@@ -90,6 +90,7 @@ import Prelude hiding (null, last, (!!), read, concat, unlines)
9090
9191import Streamly.Data.Fold (Fold)
9292import Streamly.Internal.Data.Array.Type (Array(..))
93+import Streamly.Internal.Data.MutByteArray.Type (MutByteArray)
9394import Streamly.Internal.Data.Fold.Chunked (ChunkFold(..))
9495import Streamly.Internal.Data.Parser (ParseError(..))
9596import Streamly.Internal.Data.Stream (Stream)
@@ -174,7 +175,7 @@ interposeSuffix x = D.interposeSuffix x A.reader
174175
175176data FlattenState s =
176177 OuterLoop s
177− | InnerLoop s !MA.MutableByteArray !Int !Int
178+ | InnerLoop s !MutByteArray !Int !Int
178179
179180-- XXX This is a special case of interposeSuffix, can be removed.
180181-- XXX Remove monadIO constraint
core/src/Streamly/Internal/Data/Array/Type.hs+2−1
@@ -121,7 +121,8 @@ import GHC.Exts (IsList, IsString(..), Addr#)
121121
122122import GHC.IO (unsafePerformIO)
123123import GHC.Ptr (Ptr(..))
124−import Streamly.Internal.Data.MutArray.Type (MutArray(..), MutByteArray)
124+import Streamly.Internal.Data.MutArray.Type (MutArray(..))
125+import Streamly.Internal.Data.MutByteArray.Type (MutByteArray)
125126import Streamly.Internal.Data.Fold.Type (Fold(..))
126127import Streamly.Internal.Data.Stream.Type (Stream)
127128import Streamly.Internal.Data.StreamK.Type (StreamK)
core/src/Streamly/Internal/Data/MutArray/Type.hs−3
@@ -31,8 +31,6 @@ module Streamly.Internal.Data.MutArray.Type
3131 -- ** Type
3232 -- $arrayNotes
3333 MutArray (..)
34− , MutByteArray
35− , MutableByteArray
3634 , pin
3735 , unpin
3836 , isPinned
@@ -257,7 +255,6 @@ import Foreign.C.Types (CSize(..), CInt(..))
257255import Foreign.Ptr (plusPtr, minusPtr, nullPtr)
258256import Streamly.Internal.Data.MutByteArray.Type
259257 ( MutByteArray(..)
260− , MutableByteArray
261258 , PinnedState(..)
262259 , getMutableByteArray#
263260 , putSliceUnsafe
core/src/Streamly/Internal/Unicode/Stream.hs+1−1
@@ -111,7 +111,7 @@ import GHC.IO.Encoding.Failure (isSurrogate)
111111import GHC.Ptr (Ptr (..), plusPtr)
112112import System.IO.Unsafe (unsafePerformIO)
113113import Streamly.Internal.Data.Array.Type (Array(..))
114−import Streamly.Internal.Data.MutArray.Type (MutByteArray)
114+import Streamly.Internal.Data.MutByteArray.Type (MutByteArray)
115115import Streamly.Internal.Data.Fold (Fold)
116116import Streamly.Internal.Data.Parser (Parser)
117117import Streamly.Internal.Data.Stream (Stream)