@@ -3,7 +3,7 @@
3#include "inline.hs"
3#include "inline.hs"
6−-- Module : Streamly.Internal.Memory.Mutable.Array.Types
6+-- Module : Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
7-- Copyright : (c) 2020 Composewell Technologies
7-- Copyright : (c) 2020 Composewell Technologies
9-- License : BSD3-3-Clause
9-- License : BSD3-3-Clause
@@ -11,7 +11,7 @@
11-- Stability : experimental
11-- Stability : experimental
12-- Portability : GHC
12-- Portability : GHC
14−module Streamly.Internal.Memory.Mutable.Array.Types
14+module Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
16 Array (..)
16 Array (..)
17 , mutableArray
17 , mutableArray
@@ -509,7 +509,7 @@ fromStreamDArraysOf n (D.Stream step state) =
509 step' _ (GroupStart st) = do
509 step' _ (GroupStart st) = do
510 when (n <= 0) $
510 when (n <= 0) $
511 -- XXX we can pass the module string from the higher level API
511 -- 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 "
513 ++ "arrays [" ++ show n ++ "] must be a natural number"
513 ++ "arrays [" ++ show n ++ "] must be a natural number"
514 Array start end bound <- liftIO $ newArray n
514 Array start end bound <- liftIO $ newArray n
515 return $ D.Skip (GroupBuffer st start end bound)
515 return $ D.Skip (GroupBuffer st start end bound)
@@ -621,7 +621,7 @@ packArraysChunksOf n (D.Stream step state) =
621 step' gst (SpliceInitial st) = do
621 step' gst (SpliceInitial st) = do
622 when (n <= 0) $
622 when (n <= 0) $
623 -- XXX we can pass the module string from the higher level API
623 -- 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 "
625 ++ "arrays [" ++ show n ++ "] must be a natural number"
625 ++ "arrays [" ++ show n ++ "] must be a natural number"
626 r <- step gst st
626 r <- step gst st
627 case r of
627 case r of
@@ -667,7 +667,7 @@ lpackArraysChunksOf n (Fold step1 initial1 extract1) =
667 initial = do
667 initial = do
668 when (n <= 0) $
668 when (n <= 0) $
669 -- XXX we can pass the module string from the higher level API
669 -- 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 "
671 ++ "arrays [" ++ show n ++ "] must be a natural number"
671 ++ "arrays [" ++ show n ++ "] must be a natural number"
672 r1 <- initial1
672 r1 <- initial1
673 return (Tuple' Nothing r1)
673 return (Tuple' Nothing r1)
@@ -726,11 +726,11 @@ groupIOVecsOf n maxIOVLen (D.Stream step state) =
726 step' gst (GatherInitial st) = do
726 step' gst (GatherInitial st) = do
727 when (n <= 0) $
727 when (n <= 0) $
728 -- XXX we can pass the module string from the higher level API
728 -- 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 "
730 ++ "groups [" ++ show n ++ "] must be a natural number"
730 ++ "groups [" ++ show n ++ "] must be a natural number"
731 when (maxIOVLen <= 0) $
731 when (maxIOVLen <= 0) $
732 -- XXX we can pass the module string from the higher level API
732 -- 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 "
734 ++ "IOVec entries [" ++ show n ++ "] must be a natural number"
734 ++ "IOVec entries [" ++ show n ++ "] must be a natural number"
735 r <- step (adaptState gst) st
735 r <- step (adaptState gst) st
736 case r of
736 case r of