on master help sign in
Rename Streamly.Internal.Memory.Mutable.Array.Types

According to the new module structure, it should be Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types

commitc2be1633741de63f1e341afe033f5fd28862f114 authoradithyaov <adi.obilisetty@gmail.com> dateFri 28 Aug 2020, 02:17 (6 years ago) parente3e69a1
9 files changed+17−17
src/Streamly/FileSystem/FD.hs+1−1 src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs+3−3 src/Streamly/Internal/Memory/Mutable/Array/Types.hs → src/Streamly/Internal/Data/Array/Storable/Foreign/Mut/Types.hs+7−7 src/Streamly/Internal/Data/Stream/StreamD.hs+1−1 src/Streamly/Internal/FileSystem/Handle.hs+1−1 src/Streamly/Internal/Memory/Array/Types.hs+1−1 src/Streamly/Internal/Memory/ArrayStream.hs+1−1 src/Streamly/Internal/Network/Socket.hs+1−1 streamly.cabal+1−1
src/Streamly/FileSystem/FD.hs+1−1
@@ -131,7 +131,7 @@ import qualified GHC.IO.FD as FD
131131import qualified GHC.IO.Device as RawIO
132132
133133import Streamly.Internal.Memory.Array.Types (Array(..), byteLength, defaultChunkSize, unsafeFreeze)
134−import Streamly.Internal.Memory.Mutable.Array.Types (mutableArray)
134+import Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types (mutableArray)
135135
136136import Streamly.Internal.Data.Stream.Serial (SerialT)
137137import Streamly.Internal.Data.Stream.StreamK.Type (IsStream, mkStream)
src/Streamly/Internal/Data/Array/Prim/MutTypesInclude.hs+3−3
@@ -268,7 +268,7 @@ fromStreamDArraysOf n (D.Stream step state) = D.Stream step' (GroupStart state)
268268 when (n <= 0) $
269269 -- XXX we can pass the module string from the higher level API
270270 error $
271− "Streamly.Internal.Memory.Mutable.Array.Types.fromStreamDArraysOf: the size of " ++
271+ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.fromStreamDArraysOf: the size of " ++
272272 "arrays [" ++ show n ++ "] must be a natural number"
273273 arr <- newArray n
274274 return $ D.Skip (GroupBuffer st arr 0)
@@ -321,7 +321,7 @@ packArraysChunksOf n (D.Stream step state) =
321321 step' gst (SpliceInitial st) = do
322322 when (n <= 0) $
323323 -- XXX we can pass the module string from the higher level API
324− error $ "Streamly.Internal.Memory.Mutable.Array.Types.packArraysChunksOf: the size of "
324+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.packArraysChunksOf: the size of "
325325 ++ "arrays [" ++ show n ++ "] must be a natural number"
326326 r <- step gst st
327327 case r of
@@ -365,7 +365,7 @@ lpackArraysChunksOf n (Fold step1 initial1 extract1) =
365365 initial = do
366366 when (n <= 0) $
367367 -- XXX we can pass the module string from the higher level API
368− error $ "Streamly.Internal.Memory.Mutable.Array.Types.packArraysChunksOf: the size of "
368+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.packArraysChunksOf: the size of "
369369 ++ "arrays [" ++ show n ++ "] must be a natural number"
370370 r1 <- initial1
371371 return (Tuple' Nothing r1)
src/Streamly/Internal/Memory/Mutable/Array/Types.hs → src/Streamly/Internal/Data/Array/Storable/Foreign/Mut/Types.hsrenamed+7−7
@@ -3,7 +3,7 @@
33#include "inline.hs"
44
55-- |
6−-- Module : Streamly.Internal.Memory.Mutable.Array.Types
6+-- Module : Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
77-- Copyright : (c) 2020 Composewell Technologies
88--
99-- License : BSD3-3-Clause
@@ -11,7 +11,7 @@
1111-- Stability : experimental
1212-- Portability : GHC
1313--
14−module Streamly.Internal.Memory.Mutable.Array.Types
14+module Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
1515 (
1616 Array (..)
1717 , mutableArray
@@ -509,7 +509,7 @@ fromStreamDArraysOf n (D.Stream step state) =
509509 step' _ (GroupStart st) = do
510510 when (n <= 0) $
511511 -- XXX we can pass the module string from the higher level API
512− error $ "Streamly.Internal.Memory.Mutable.Array.Types.fromStreamDArraysOf: the size of "
512+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.fromStreamDArraysOf: the size of "
513513 ++ "arrays [" ++ show n ++ "] must be a natural number"
514514 Array start end bound <- liftIO $ newArray n
515515 return $ D.Skip (GroupBuffer st start end bound)
@@ -621,7 +621,7 @@ packArraysChunksOf n (D.Stream step state) =
621621 step' gst (SpliceInitial st) = do
622622 when (n <= 0) $
623623 -- XXX we can pass the module string from the higher level API
624− error $ "Streamly.Internal.Memory.Mutable.Array.Types.packArraysChunksOf: the size of "
624+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.packArraysChunksOf: the size of "
625625 ++ "arrays [" ++ show n ++ "] must be a natural number"
626626 r <- step gst st
627627 case r of
@@ -667,7 +667,7 @@ lpackArraysChunksOf n (Fold step1 initial1 extract1) =
667667 initial = do
668668 when (n <= 0) $
669669 -- XXX we can pass the module string from the higher level API
670− error $ "Streamly.Internal.Memory.Mutable.Array.Types.packArraysChunksOf: the size of "
670+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.packArraysChunksOf: the size of "
671671 ++ "arrays [" ++ show n ++ "] must be a natural number"
672672 r1 <- initial1
673673 return (Tuple' Nothing r1)
@@ -726,11 +726,11 @@ groupIOVecsOf n maxIOVLen (D.Stream step state) =
726726 step' gst (GatherInitial st) = do
727727 when (n <= 0) $
728728 -- XXX we can pass the module string from the higher level API
729− error $ "Streamly.Internal.Memory.Mutable.Array.Types.groupIOVecsOf: the size of "
729+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.groupIOVecsOf: the size of "
730730 ++ "groups [" ++ show n ++ "] must be a natural number"
731731 when (maxIOVLen <= 0) $
732732 -- XXX we can pass the module string from the higher level API
733− error $ "Streamly.Internal.Memory.Mutable.Array.Types.groupIOVecsOf: the number of "
733+ error $ "Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types.groupIOVecsOf: the number of "
734734 ++ "IOVec entries [" ++ show n ++ "] must be a natural number"
735735 r <- step (adaptState gst) st
736736 case r of
src/Streamly/Internal/Data/Stream/StreamD.hs+1−1
@@ -343,7 +343,7 @@ import Streamly.Internal.Data.Stream.SVar (fromConsumer, pushToFold)
343343import qualified Streamly.Internal.Data.IORef.Prim as Prim
344344import qualified Streamly.Internal.Data.Pipe.Types as Pipe
345345import qualified Streamly.Internal.Memory.Array.Types as A
346−import qualified Streamly.Internal.Memory.Mutable.Array.Types as MA
346+import qualified Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types as MA
347347import qualified Streamly.Internal.Data.Fold as FL
348348import qualified Streamly.Memory.Ring as RB
349349import qualified Streamly.Internal.Data.Stream.StreamK as K
src/Streamly/Internal/FileSystem/Handle.hs+1−1
@@ -116,7 +116,7 @@ import Streamly.Internal.Data.Unfold.Types (Unfold(..))
116116import Streamly.Internal.Memory.Array.Types
117117 (Array(..), writeNUnsafe, defaultChunkSize, lpackArraysChunksOf
118118 , unsafeFreezeWithShrink)
119−import Streamly.Internal.Memory.Mutable.Array.Types (mutableArray)
119+import Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types (mutableArray)
120120import Streamly.Internal.Data.Stream.Serial (SerialT)
121121import Streamly.Internal.Data.Stream.StreamK.Type (IsStream, mkStream)
122122-- import Streamly.String (encodeUtf8, decodeUtf8, foldLines)
src/Streamly/Internal/Memory/Array/Types.hs+1−1
@@ -101,7 +101,7 @@ import Prelude hiding (length, foldr, read, unlines, splitAt)
101101
102102import qualified Streamly.Internal.Data.Stream.StreamD.Type as D
103103import qualified Streamly.Internal.Data.Stream.StreamK as K
104−import qualified Streamly.Internal.Memory.Mutable.Array.Types as MA
104+import qualified Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types as MA
105105import qualified GHC.Exts as Exts
106106
107107#if __GLASGOW_HASKELL__ < 808
src/Streamly/Internal/Memory/ArrayStream.hs+1−1
@@ -47,7 +47,7 @@ import Streamly.Internal.Data.Stream.StreamK.Type (IsStream)
4747
4848import qualified Streamly.Internal.Memory.Array as A
4949import qualified Streamly.Internal.Memory.Array.Types as A
50−import qualified Streamly.Internal.Memory.Mutable.Array.Types as MA
50+import qualified Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types as MA
5151import qualified Streamly.Internal.Data.Stream.IsStream as S
5252import qualified Streamly.Internal.Data.Stream.StreamD as D
5353import qualified Streamly.Internal.Data.Stream.Prelude as P
src/Streamly/Internal/Network/Socket.hs+1−1
@@ -90,7 +90,7 @@ import qualified Network.Socket as Net
9090import Streamly (MonadAsync)
9191import Streamly.Internal.Data.Unfold.Types (Unfold(..))
9292import Streamly.Internal.Memory.Array.Types (Array(..), lpackArraysChunksOf)
93−import Streamly.Internal.Memory.Mutable.Array.Types (mutableArray)
93+import Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types (mutableArray)
9494import Streamly.Internal.Data.Stream.Serial (SerialT)
9595import Streamly.Internal.Data.Stream.StreamK.Type (IsStream, mkStream)
9696import Streamly.Data.Fold (Fold)
streamly.cabal+1−1
@@ -429,7 +429,7 @@ library
429429 , Streamly.Internal.Data.Array.Prim.Pinned.Mut.Types
430430 , Streamly.Internal.Data.SmallArray.Types
431431 , Streamly.Internal.Data.SmallArray
432− , Streamly.Internal.Memory.Mutable.Array.Types
432+ , Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
433433 , Streamly.Internal.Memory.Array.Types
434434 , Streamly.Internal.Memory.Array
435435 , Streamly.Internal.Memory.ArrayStream