@@ -277,11 +277,6 @@ main = hspec $ do
277277 it "Nests two streams using applicative async composition" nestTwoAsyncApp
278278 it "Nests two streams using applicative parallel composition" nestTwoParallelApp
279279
280− it "Nests two streams using Num serial composition" nestTwoSerialNum
281− it "Nests two streams using Num interleaved composition" nestTwoInterleavedNum
282− it "Nests two streams using Num async composition" nestTwoAsyncNum
283− it "Nests two streams using Num parallel composition" nestTwoParallelNum
284−
285280 ---------------------------------------------------------------------------
286281 -- TBD Bind and Bind combinations
287282 ---------------------------------------------------------------------------
@@ -402,13 +397,6 @@ nestTwoSerialApp =
402397 in toListSerial ((+) <$> s1 <*> s2)
403398 `shouldReturn` ([6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12] :: [Int])
404399
405−nestTwoSerialNum :: Expectation
406−nestTwoSerialNum =
407− let s1 = foldMapWith (<>) return [1..4]
408− s2 = foldMapWith (<>) return [5..8]
409− in toListSerial (s1 + s2)
410− `shouldReturn` ([6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12] :: [Int])
411−
412400nestTwoInterleaved :: Expectation
413401nestTwoInterleaved =
414402 let s1 = foldMapWith (<>) return [1..4]
@@ -426,13 +414,6 @@ nestTwoInterleavedApp =
426414 in toListInterleaved ((+) <$> s1 <*> s2)
427415 `shouldReturn` ([6,7,7,8,8,8,9,9,9,9,10,10,10,11,11,12] :: [Int])
428416
429−nestTwoInterleavedNum :: Expectation
430−nestTwoInterleavedNum =
431− let s1 = foldMapWith (<>) return [1..4]
432− s2 = foldMapWith (<>) return [5..8]
433− in toListInterleaved (s1 + s2)
434− `shouldReturn` ([6,7,7,8,8,8,9,9,9,9,10,10,10,11,11,12] :: [Int])
435−
436417nestTwoAsync :: Expectation
437418nestTwoAsync =
438419 let s1 = foldMapWith (<>) return [1..4]
@@ -451,13 +432,6 @@ nestTwoAsyncApp =
451432 in (toListAsync ((+) <$> s1 <*> s2) >>= return . sort)
452433 `shouldReturn` sort ([6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12] :: [Int])
453434
454−nestTwoAsyncNum :: Expectation
455−nestTwoAsyncNum =
456− let s1 = foldMapWith (<>) return [1..4]
457− s2 = foldMapWith (<>) return [5..8]
458− in (toListAsync (s1 + s2) >>= return . sort)
459− `shouldReturn` sort ([6,7,8,9,7,8,9,10,8,9,10,11,9,10,11,12] :: [Int])
460−
461435nestTwoParallel :: Expectation
462436nestTwoParallel =
463437 let s1 = foldMapWith (<>) return [1..4]
@@ -476,13 +450,6 @@ nestTwoParallelApp =
476450 in (toListParallel ((+) <$> s1 <*> s2) >>= return . sort)
477451 `shouldReturn` sort ([6,7,7,8,8,8,9,9,9,9,10,10,10,11,11,12] :: [Int])
478452
479−nestTwoParallelNum :: Expectation
480−nestTwoParallelNum =
481− let s1 = foldMapWith (<>) return [1..4]
482− s2 = foldMapWith (<>) return [5..8]
483− in (toListParallel (s1 + s2) >>= return . sort)
484− `shouldReturn` sort ([6,7,7,8,8,8,9,9,9,9,10,10,10,11,11,12] :: [Int])
485−
486453timed :: MonadIO (t IO) => Int -> t IO Int
487454timed x = liftIO (threadDelay (x * 100000)) >> return x
488455