@@ -10,7 +10,7 @@
10#include "inline.hs"
10#include "inline.hs"
13−-- Module : Streamly.Memory.Array.Types
13+-- Module : Streamly.Internal.Memory.Array.Types
14-- Copyright : (c) 2019 Composewell Technologies
14-- Copyright : (c) 2019 Composewell Technologies
16-- License : BSD3
16-- License : BSD3
@@ -18,7 +18,7 @@
18-- Stability : experimental
18-- Stability : experimental
19-- Portability : GHC
19-- Portability : GHC
21−module Streamly.Memory.Array.Types
21+module Streamly.Internal.Memory.Array.Types
23 Array (..)
23 Array (..)
@@ -660,7 +660,7 @@ fromStreamDArraysOf n (D.Stream step state) =
660 step' _ (GroupStart st) = do
660 step' _ (GroupStart st) = do
661 when (n <= 0) $
661 when (n <= 0) $
662 -- XXX we can pass the module string from the higher level API
662 -- XXX we can pass the module string from the higher level API
663− error $ "Streamly.Memory.Array.Types.fromStreamDArraysOf: the size of "
663+ error $ "Streamly.Internal.Memory.Array.Types.fromStreamDArraysOf: the size of "
664 ++ "arrays [" ++ show n ++ "] must be a natural number"
664 ++ "arrays [" ++ show n ++ "] must be a natural number"
665 Array start end bound <- liftIO $ newArray n
665 Array start end bound <- liftIO $ newArray n
666 return $ D.Skip (GroupBuffer st start end bound)
666 return $ D.Skip (GroupBuffer st start end bound)
@@ -1064,7 +1064,7 @@ packArraysChunksOf n (D.Stream step state) =
1064 step' gst (SpliceInitial st) = do
1064 step' gst (SpliceInitial st) = do
1065 when (n <= 0) $
1065 when (n <= 0) $
1066 -- XXX we can pass the module string from the higher level API
1066 -- XXX we can pass the module string from the higher level API
1067− error $ "Streamly.Memory.Array.Types.packArraysChunksOf: the size of "
1067+ error $ "Streamly.Internal.Memory.Array.Types.packArraysChunksOf: the size of "
1068 ++ "arrays [" ++ show n ++ "] must be a natural number"
1068 ++ "arrays [" ++ show n ++ "] must be a natural number"
1069 r <- step gst st
1069 r <- step gst st
1070 case r of
1070 case r of
@@ -1110,7 +1110,7 @@ lpackArraysChunksOf n (Fold step1 initial1 extract1) =
1110 initial = do
1110 initial = do
1111 when (n <= 0) $
1111 when (n <= 0) $
1112 -- XXX we can pass the module string from the higher level API
1112 -- XXX we can pass the module string from the higher level API
1113− error $ "Streamly.Memory.Array.Types.packArraysChunksOf: the size of "
1113+ error $ "Streamly.Internal.Memory.Array.Types.packArraysChunksOf: the size of "
1114 ++ "arrays [" ++ show n ++ "] must be a natural number"
1114 ++ "arrays [" ++ show n ++ "] must be a natural number"
1115 r1 <- initial1
1115 r1 <- initial1
1116 return (Tuple' Nothing r1)
1116 return (Tuple' Nothing r1)
@@ -1169,11 +1169,11 @@ groupIOVecsOf n maxIOVLen (D.Stream step state) =
1169 step' gst (GatherInitial st) = do
1169 step' gst (GatherInitial st) = do
1170 when (n <= 0) $
1170 when (n <= 0) $
1171 -- XXX we can pass the module string from the higher level API
1171 -- XXX we can pass the module string from the higher level API
1172− error $ "Streamly.Memory.Array.Types.groupIOVecsOf: the size of "
1172+ error $ "Streamly.Internal.Memory.Array.Types.groupIOVecsOf: the size of "
1173 ++ "groups [" ++ show n ++ "] must be a natural number"
1173 ++ "groups [" ++ show n ++ "] must be a natural number"
1174 when (maxIOVLen <= 0) $
1174 when (maxIOVLen <= 0) $
1175 -- XXX we can pass the module string from the higher level API
1175 -- XXX we can pass the module string from the higher level API
1176− error $ "Streamly.Memory.Array.Types.groupIOVecsOf: the number of "
1176+ error $ "Streamly.Internal.Memory.Array.Types.groupIOVecsOf: the number of "
1177 ++ "IOVec entries [" ++ show n ++ "] must be a natural number"
1177 ++ "IOVec entries [" ++ show n ++ "] must be a natural number"
1178 r <- step (adaptState gst) st
1178 r <- step (adaptState gst) st
1179 case r of
1179 case r of