@@ -73,13 +73,13 @@ module Streamly.Internal.Data.Stream.Concurrent
74 -- ** List of streams
74 -- ** List of streams
75 -- | Shares a single channel across many streams.
75 -- | Shares a single channel across many streams.
76− , parLazy
76+ , parListLazy
77− , parLazyOrdered
77+ , parListOrdered
78− , parLazyInterleaved
78+ , parListInterleaved
79− , parEager
79+ , parListEager
80− , parEagerFst
80+ , parListEagerFst
81− , parEagerMin
81+ , parListEagerMin
82− , parConcatList
82+ , parList
84 , parZipWithM
84 , parZipWithM
85 , parZipWith
85 , parZipWith
@@ -492,64 +492,64 @@ parConcat modifier = parConcatMap modifier id
493-- | Like 'parConcat' but works on a list of streams.
493-- | Like 'parConcat' but works on a list of streams.
495−-- >>> parConcatList modifier = Stream.parConcat modifier . Stream.fromList
495+-- >>> parList modifier = Stream.parConcat modifier . Stream.fromList
497−{-# INLINE parConcatList #-}
497+{-# INLINE parList #-}
498−parConcatList :: MonadAsync m => (Config -> Config) -> [Stream m a] -> Stream m a
498+parList :: MonadAsync m => (Config -> Config) -> [Stream m a] -> Stream m a
499−parConcatList modifier = parConcat modifier . Stream.fromList
499+parList modifier = parConcat modifier . Stream.fromList
501-- | Like 'concat' but works on a list of streams.
501-- | Like 'concat' but works on a list of streams.
503−-- >>> parLazy = Stream.parConcatList id
503+-- >>> parListLazy = Stream.parList id
505−{-# INLINE parLazy #-}
505+{-# INLINE parListLazy #-}
506−parLazy :: MonadAsync m => [Stream m a] -> Stream m a
506+parListLazy :: MonadAsync m => [Stream m a] -> Stream m a
507−parLazy = parConcatList id
507+parListLazy = parList id
509−-- | Like 'parLazy' but interleaves the streams fairly instead of prioritizing
509+-- | Like 'parListLazy' but interleaves the streams fairly instead of prioritizing
510-- the left stream. This schedules all streams in a round robin fashion over
510-- the left stream. This schedules all streams in a round robin fashion over
511-- limited number of threads.
511-- limited number of threads.
513−-- >>> parLazyInterleaved = Stream.parConcatList (Stream.interleaved True)
513+-- >>> parListInterleaved = Stream.parList (Stream.interleaved True)
515−{-# INLINE parLazyInterleaved #-}
515+{-# INLINE parListInterleaved #-}
516−parLazyInterleaved :: MonadAsync m => [Stream m a] -> Stream m a
516+parListInterleaved :: MonadAsync m => [Stream m a] -> Stream m a
517−parLazyInterleaved = parConcatList (interleaved True)
517+parListInterleaved = parList (interleaved True)
519−-- | Like 'parLazy' but with 'ordered' on.
519+-- | Like 'parListLazy' but with 'ordered' on.
521−-- >>> parLazyOrdered = Stream.parConcatList (Stream.ordered True)
521+-- >>> parListOrdered = Stream.parList (Stream.ordered True)
523−{-# INLINE parLazyOrdered #-}
523+{-# INLINE parListOrdered #-}
524−parLazyOrdered :: MonadAsync m => [Stream m a] -> Stream m a
524+parListOrdered :: MonadAsync m => [Stream m a] -> Stream m a
525−parLazyOrdered = parConcatList (ordered True)
525+parListOrdered = parList (ordered True)
527−-- | Like 'parLazy' but with 'eager' on.
527+-- | Like 'parListLazy' but with 'eager' on.
529−-- >>> parEager = Stream.parConcatList (Stream.eager True)
529+-- >>> parListEager = Stream.parList (Stream.eager True)
531−{-# INLINE parEager #-}
531+{-# INLINE parListEager #-}
532−parEager :: MonadAsync m => [Stream m a] -> Stream m a
532+parListEager :: MonadAsync m => [Stream m a] -> Stream m a
533−parEager = parConcatList (eager True)
533+parListEager = parList (eager True)
535−-- | Like 'parEager' but stops the output as soon as the first stream stops.
535+-- | Like 'parListEager' but stops the output as soon as the first stream stops.
537−-- >>> parEagerFst = Stream.parConcatList (Stream.eager True . Stream.stopWhen Stream.FirstStops)
537+-- >>> parListEagerFst = Stream.parList (Stream.eager True . Stream.stopWhen Stream.FirstStops)
539−{-# INLINE parEagerFst #-}
539+{-# INLINE parListEagerFst #-}
540−parEagerFst :: MonadAsync m => [Stream m a] -> Stream m a
540+parListEagerFst :: MonadAsync m => [Stream m a] -> Stream m a
541−parEagerFst = parConcatList (eager True . stopWhen FirstStops)
541+parListEagerFst = parList (eager True . stopWhen FirstStops)
543−-- | Like 'parEager' but stops the output as soon as any of the two streams
543+-- | Like 'parListEager' but stops the output as soon as any of the two streams
546-- Definition:
546-- Definition:
548−-- >>> parEagerMin = Stream.parConcatList (Stream.eager True . Stream.stopWhen Stream.AnyStops)
548+-- >>> parListEagerMin = Stream.parList (Stream.eager True . Stream.stopWhen Stream.AnyStops)
550−{-# INLINE parEagerMin #-}
550+{-# INLINE parListEagerMin #-}
551−parEagerMin :: MonadAsync m => [Stream m a] -> Stream m a
551+parListEagerMin :: MonadAsync m => [Stream m a] -> Stream m a
552−parEagerMin = parConcatList (eager True . stopWhen AnyStops)
552+parListEagerMin = parList (eager True . stopWhen AnyStops)
554-------------------------------------------------------------------------------
554-------------------------------------------------------------------------------
555-- Applicative
555-- Applicative