@@ -20,10 +20,10 @@ toListSerial :: SerialT IO a -> IO [a]
2020toListSerial = A.toList . serially
2121
2222toListInterleaved :: InterleavedT IO a -> IO [a]
23−toListInterleaved = A.toList . interleaving
23+toListInterleaved = A.toList . coserially
2424
2525toListAsync :: AParallelT IO a -> IO [a]
26−toListAsync = A.toList . aparallely
26+toListAsync = A.toList . coparallely
2727
2828toListParallel :: ParallelT IO a -> IO [a]
2929toListParallel = A.toList . parallely
@@ -88,8 +88,8 @@ main = hspec $ do
8888 ---------------------------------------------------------------------------
8989
9090 describe "Serial Composition" $ compose serially mempty id
91− describe "Interleaved Composition" $ compose interleaving mempty sort
92− describe "Left biased parallel Composition" $ compose aparallely mempty sort
91+ describe "Interleaved Composition" $ compose coserially mempty sort
92+ describe "Left biased parallel Composition" $ compose coparallely mempty sort
9393 describe "Fair parallel Composition" $ compose parallely mempty sort
9494 describe "Semigroup Composition for ZipSerial" $ compose zipping mempty id
9595 describe "Semigroup Composition for ZipAsync" $ compose zippingAsync mempty id
@@ -98,9 +98,9 @@ main = hspec $ do
9898 -- Monoidal Composition ordering checks
9999 ---------------------------------------------------------------------------
100100
101− describe "Serial interleaved ordering check" $ interleaveCheck interleaving
101+ describe "Serial interleaved ordering check" $ interleaveCheck coserially
102102 describe "Parallel interleaved ordering check" $ interleaveCheck parallely
103− describe "Left biased parallel time order check" $ parallelCheck aparallely
103+ describe "Left biased parallel time order check" $ parallelCheck coparallely
104104 describe "Fair parallel time order check" $ parallelCheck parallely
105105
106106 ---------------------------------------------------------------------------
@@ -112,7 +112,7 @@ main = hspec $ do
112112
113113 describe "<> and <=>" $ composeAndComposeSimple
114114 serially
115− interleaving
115+ coserially
116116 ([ [1 .. 9]
117117 , [1 .. 9]
118118 , [1, 3, 2, 4, 6, 5, 7, 9, 8]
@@ -120,8 +120,8 @@ main = hspec $ do
120120 ])
121121
122122 describe "<=> and <=>" $ composeAndComposeSimple
123− interleaving
124− interleaving
123+ coserially
124+ coserially
125125 ([ [1, 4, 2, 7, 3, 5, 8, 6, 9]
126126 , [1, 7, 4, 8, 2, 9, 5, 3, 6]
127127 , [1, 4, 3, 7, 2, 6, 9, 5, 8]
@@ -129,7 +129,7 @@ main = hspec $ do
129129 ])
130130
131131 describe "<=> and <>" $ composeAndComposeSimple
132− interleaving
132+ coserially
133133 serially
134134 ([ [1, 4, 2, 7, 3, 5, 8, 6, 9]
135135 , [1, 7, 4, 8, 2, 9, 5, 3, 6]
@@ -183,7 +183,7 @@ main = hspec $ do
183183 ---------------------------------------------------------------------------
184184
185185 describe "Serial loops (<>)" $ loops serially id reverse
186− describe "Left biased parallel loops (<|)" $ loops aparallely sort sort
186+ describe "Left biased parallel loops (<|)" $ loops coparallely sort sort
187187 describe "Fair parallel loops (<|>)" $ loops parallely sort sort
188188
189189 ---------------------------------------------------------------------------
@@ -191,23 +191,23 @@ main = hspec $ do
191191 ---------------------------------------------------------------------------
192192
193193 describe "Bind and compose1" $ bindAndComposeSimple serially serially
194− describe "Bind and compose2" $ bindAndComposeSimple serially interleaving
195− describe "Bind and compose3" $ bindAndComposeSimple serially aparallely
194+ describe "Bind and compose2" $ bindAndComposeSimple serially coserially
195+ describe "Bind and compose3" $ bindAndComposeSimple serially coparallely
196196 describe "Bind and compose4" $ bindAndComposeSimple serially parallely
197197
198− describe "Bind and compose1" $ bindAndComposeSimple interleaving serially
199− describe "Bind and compose2" $ bindAndComposeSimple interleaving interleaving
200− describe "Bind and compose3" $ bindAndComposeSimple interleaving aparallely
201− describe "Bind and compose4" $ bindAndComposeSimple interleaving parallely
198+ describe "Bind and compose1" $ bindAndComposeSimple coserially serially
199+ describe "Bind and compose2" $ bindAndComposeSimple coserially coserially
200+ describe "Bind and compose3" $ bindAndComposeSimple coserially coparallely
201+ describe "Bind and compose4" $ bindAndComposeSimple coserially parallely
202202
203− describe "Bind and compose1" $ bindAndComposeSimple aparallely serially
204− describe "Bind and compose2" $ bindAndComposeSimple aparallely interleaving
205− describe "Bind and compose3" $ bindAndComposeSimple aparallely aparallely
206− describe "Bind and compose4" $ bindAndComposeSimple aparallely parallely
203+ describe "Bind and compose1" $ bindAndComposeSimple coparallely serially
204+ describe "Bind and compose2" $ bindAndComposeSimple coparallely coserially
205+ describe "Bind and compose3" $ bindAndComposeSimple coparallely coparallely
206+ describe "Bind and compose4" $ bindAndComposeSimple coparallely parallely
207207
208208 describe "Bind and compose1" $ bindAndComposeSimple parallely serially
209− describe "Bind and compose2" $ bindAndComposeSimple parallely interleaving
210− describe "Bind and compose3" $ bindAndComposeSimple parallely aparallely
209+ describe "Bind and compose2" $ bindAndComposeSimple parallely coserially
210+ describe "Bind and compose3" $ bindAndComposeSimple parallely coparallely
211211 describe "Bind and compose4" $ bindAndComposeSimple parallely parallely
212212
213213 let fldr, fldl :: (IsStream t, Semigroup (t IO Int)) => [t IO Int] -> t IO Int
@@ -217,36 +217,36 @@ main = hspec $ do
217217 forM_ [fldr, fldl] $ \k ->
218218 describe "Bind and compose" $ bindAndComposeHierarchy serially serially k
219219 forM_ [fldr, fldl] $ \k ->
220− describe "Bind and compose" $ bindAndComposeHierarchy serially interleaving k
220+ describe "Bind and compose" $ bindAndComposeHierarchy serially coserially k
221221 forM_ [fldr, fldl] $ \k ->
222− describe "Bind and compose" $ bindAndComposeHierarchy serially aparallely k
222+ describe "Bind and compose" $ bindAndComposeHierarchy serially coparallely k
223223 forM_ [fldr, fldl] $ \k ->
224224 describe "Bind and compose" $ bindAndComposeHierarchy serially parallely k
225225
226226 forM_ [fldr, fldl] $ \k ->
227− describe "Bind and compose" $ bindAndComposeHierarchy interleaving serially k
227+ describe "Bind and compose" $ bindAndComposeHierarchy coserially serially k
228228 forM_ [fldr, fldl] $ \k ->
229− describe "Bind and compose" $ bindAndComposeHierarchy interleaving interleaving k
229+ describe "Bind and compose" $ bindAndComposeHierarchy coserially coserially k
230230 forM_ [fldr, fldl] $ \k ->
231− describe "Bind and compose" $ bindAndComposeHierarchy interleaving aparallely k
231+ describe "Bind and compose" $ bindAndComposeHierarchy coserially coparallely k
232232 forM_ [fldr, fldl] $ \k ->
233− describe "Bind and compose" $ bindAndComposeHierarchy interleaving parallely k
233+ describe "Bind and compose" $ bindAndComposeHierarchy coserially parallely k
234234
235235 forM_ [fldr, fldl] $ \k ->
236− describe "Bind and compose" $ bindAndComposeHierarchy aparallely serially k
236+ describe "Bind and compose" $ bindAndComposeHierarchy coparallely serially k
237237 forM_ [fldr, fldl] $ \k ->
238− describe "Bind and compose" $ bindAndComposeHierarchy aparallely interleaving k
238+ describe "Bind and compose" $ bindAndComposeHierarchy coparallely coserially k
239239 forM_ [fldr, fldl] $ \k ->
240− describe "Bind and compose" $ bindAndComposeHierarchy aparallely aparallely k
240+ describe "Bind and compose" $ bindAndComposeHierarchy coparallely coparallely k
241241 forM_ [fldr, fldl] $ \k ->
242− describe "Bind and compose" $ bindAndComposeHierarchy aparallely parallely k
242+ describe "Bind and compose" $ bindAndComposeHierarchy coparallely parallely k
243243
244244 forM_ [fldr, fldl] $ \k ->
245245 describe "Bind and compose" $ bindAndComposeHierarchy parallely serially k
246246 forM_ [fldr, fldl] $ \k ->
247− describe "Bind and compose" $ bindAndComposeHierarchy parallely interleaving k
247+ describe "Bind and compose" $ bindAndComposeHierarchy parallely coserially k
248248 forM_ [fldr, fldl] $ \k ->
249− describe "Bind and compose" $ bindAndComposeHierarchy parallely aparallely k
249+ describe "Bind and compose" $ bindAndComposeHierarchy parallely coparallely k
250250 forM_ [fldr, fldl] $ \k ->
251251 describe "Bind and compose" $ bindAndComposeHierarchy parallely parallely k
252252
@@ -553,11 +553,11 @@ mixedOps = do
553553 x1 <- parallely $ return 1 <> return 2
554554 liftIO $ return ()
555555 liftIO $ putStr ""
556− y1 <- aparallely $ return 1 <> return 2
556+ y1 <- coparallely $ return 1 <> return 2
557557 z1 <- do
558558 x11 <- return 1 <> return 2
559− y11 <- aparallely $ return 1 <> return 2
560− z11 <- interleaving $ return 1 <> return 2
559+ y11 <- coparallely $ return 1 <> return 2
560+ z11 <- coserially $ return 1 <> return 2
561561 liftIO $ return ()
562562 liftIO $ putStr ""
563563 return (x11 + y11 + z11)