@@ -54,11 +54,11 @@ import Streamly.Internal.Control.Concurrent (MonadAsync)
5454import Streamly.Internal.Data.Stream (Stream)
5555import Streamly.Internal.Data.Stream.Concurrent.Channel.Operations
5656 (fromChannel, fromChannelK, toChannel, toChannelK)
57+import Streamly.Internal.Data.Stream.Concurrent.Channel.Append
58+ (newAppendChannel)
59+import Streamly.Internal.Data.Stream.Concurrent.Channel.Interleave
60+ (newInterleaveChannel)
5761
58−import qualified Streamly.Internal.Data.Stream.Concurrent.Channel.Append
59− as Append
60−import qualified Streamly.Internal.Data.Stream.Concurrent.Channel.Interleave
61− as Interleave
6262import qualified Streamly.Internal.Data.StreamK as K
6363
6464import Streamly.Internal.Data.Stream.Concurrent.Channel.Type
@@ -73,8 +73,8 @@ newChannel :: MonadAsync m =>
7373newChannel modifier =
7474 let cfg = modifier defaultConfig
7575 in if getInterleaved cfg
76− then Interleave.newChannel modifier
77− else Append.newChannel modifier
76+ then newInterleaveChannel modifier
77+ else newAppendChannel modifier
7878
7979-- | Allocate a channel and evaluate the stream using the channel and the
8080-- supplied evaluator function. The evaluator is run in a worker thread.