@@ -79,11 +79,11 @@ newChannel modifier =
7979-- supplied evaluator function. The evaluator is run in a worker thread.
8080{-# INLINE withChannelK #-}
8181withChannelK :: MonadAsync m =>
82− (Channel m b -> K.Stream m a -> K.Stream m b)
83− -> (Config -> Config)
82+ (Config -> Config)
8483 -> K.Stream m a
84+ -> (Channel m b -> K.Stream m a -> K.Stream m b)
8585 -> K.Stream m b
86−withChannelK evaluator modifier input = K.concatEffect action
86+withChannelK modifier input evaluator = K.concatEffect action
8787
8888 where
8989
@@ -96,10 +96,10 @@ withChannelK evaluator modifier input = K.concatEffect action
9696-- supplied evaluator function. The evaluator is run in a worker thread.
9797{-# INLINE withChannel #-}
9898withChannel :: MonadAsync m =>
99− (Channel m b -> Stream m a -> Stream m b)
100− -> (Config -> Config)
99+ (Config -> Config)
101100 -> Stream m a
101+ -> (Channel m b -> Stream m a -> Stream m b)
102102 -> Stream m b
103−withChannel evaluator modifier input =
103+withChannel modifier input evaluator =
104104 let f chan stream = toStreamK $ evaluator chan (fromStreamK stream)
105− in fromStreamK $ withChannelK f modifier (toStreamK input)
105+ in fromStreamK $ withChannelK modifier (toStreamK input) f