@@ -54,11 +54,11 @@ import Streamly.Internal.Control.Concurrent (MonadAsync)
54import Streamly.Internal.Data.Stream (Stream)
54import Streamly.Internal.Data.Stream (Stream)
55import Streamly.Internal.Data.Stream.Concurrent.Channel.Operations
55import Streamly.Internal.Data.Stream.Concurrent.Channel.Operations
56 (fromChannel, fromChannelK, toChannel, toChannelK)
56 (fromChannel, fromChannelK, toChannel, toChannelK)
57+import Streamly.Internal.Data.Stream.Concurrent.Channel.Append
59+import Streamly.Internal.Data.Stream.Concurrent.Channel.Interleave
60+ (newInterleaveChannel)
58−import qualified Streamly.Internal.Data.Stream.Concurrent.Channel.Append
60−import qualified Streamly.Internal.Data.Stream.Concurrent.Channel.Interleave
62import qualified Streamly.Internal.Data.StreamK as K
62import qualified Streamly.Internal.Data.StreamK as K
64import Streamly.Internal.Data.Stream.Concurrent.Channel.Type
64import Streamly.Internal.Data.Stream.Concurrent.Channel.Type
@@ -73,8 +73,8 @@ newChannel :: MonadAsync m =>
73newChannel modifier =
73newChannel modifier =
74 let cfg = modifier defaultConfig
74 let cfg = modifier defaultConfig
75 in if getInterleaved cfg
75 in if getInterleaved cfg
76− then Interleave.newChannel modifier
76+ then newInterleaveChannel modifier
77− else Append.newChannel modifier
77+ else newAppendChannel modifier
79-- | Allocate a channel and evaluate the stream using the channel and the
79-- | Allocate a channel and evaluate the stream using the channel and the
80-- supplied evaluator function. The evaluator is run in a worker thread.
80-- supplied evaluator function. The evaluator is run in a worker thread.