@@ -36,7 +36,7 @@ equals eq stream list = do
3636
3737constructWithReplicateM
3838 :: IsStream t
39− => (t IO Int -> t IO Int)
39+ => (t IO Int -> SerialT IO Int)
4040 -> Word8
4141 -> Property
4242constructWithReplicateM op len =
@@ -47,11 +47,10 @@ constructWithReplicateM op len =
4747 equals (==) stream list
4848
4949transformFromList
50− :: IsStream t
51− => ([Int] -> t IO Int)
50+ :: ([Int] -> t IO Int)
5251 -> ([Int] -> [Int] -> Bool)
5352 -> ([Int] -> [Int])
54− -> (t IO Int -> t IO Int)
53+ -> (t IO Int -> SerialT IO Int)
5554 -> [Int]
5655 -> Property
5756transformFromList constr eq listOp op a =
@@ -61,9 +60,8 @@ transformFromList constr eq listOp op a =
6160 equals eq stream list
6261
6362foldFromList
64− :: IsStream t
65− => ([Int] -> t IO Int)
66− -> (t IO Int -> t IO Int)
63+ :: ([Int] -> t IO Int)
64+ -> (t IO Int -> SerialT IO Int)
6765 -> ([Int] -> [Int] -> Bool)
6866 -> [Int]
6967 -> Property
@@ -96,10 +94,10 @@ elemOp constr op streamOp listOp (x, xs) =
9694 equals (==) stream list
9795
9896functorOps
99− :: (IsStream t, Functor (t IO))
97+ :: Functor (t IO)
10098 => ([Int] -> t IO Int)
10199 -> String
102− -> (t IO Int -> t IO Int)
100+ -> (t IO Int -> SerialT IO Int)
103101 -> ([Int] -> [Int] -> Bool)
104102 -> Spec
105103functorOps constr desc t eq = do
@@ -110,7 +108,7 @@ transformOps
110108 :: IsStream t
111109 => ([Int] -> t IO Int)
112110 -> String
113− -> (t IO Int -> t IO Int)
111+ -> (t IO Int -> SerialT IO Int)
114112 -> ([Int] -> [Int] -> Bool)
115113 -> Spec
116114transformOps constr desc t eq = do
@@ -181,10 +179,9 @@ eliminationOps constr desc t = do
181179-- head/tail/last may depend on the order in case of parallel streams
182180-- so we test these only for serial streams.
183181serialEliminationOps
184− :: IsStream t
185− => ([Int] -> t IO Int)
182+ :: ([Int] -> t IO Int)
186183 -> String
187− -> (t IO Int -> t IO Int)
184+ -> (t IO Int -> SerialT IO Int)
188185 -> Spec
189186serialEliminationOps constr desc t = do
190187 prop (desc ++ " head") $ eliminateOp constr (wrapMaybe head) $ A.head . t
@@ -214,7 +211,7 @@ semigroupOps
214211#endif
215212 , Monoid (t IO Int))
216213 => String
217− -> (t IO Int -> t IO Int)
214+ -> (t IO Int -> SerialT IO Int)
218215 -> ([Int] -> [Int] -> Bool)
219216 -> Spec
220217semigroupOps desc t eq = do
@@ -222,9 +219,9 @@ semigroupOps desc t eq = do
222219 prop (desc ++ " mappend") $ foldFromList (foldMapWith mappend singleton) t eq
223220
224221applicativeOps
225− :: (IsStream t, Applicative (t IO))
222+ :: Applicative (t IO)
226223 => ([Int] -> t IO Int)
227− -> (t IO (Int, Int) -> t IO (Int, Int))
224+ -> (t IO (Int, Int) -> SerialT IO (Int, Int))
228225 -> ([(Int, Int)] -> [(Int, Int)] -> Bool)
229226 -> ([Int], [Int])
230227 -> Property
@@ -236,7 +233,7 @@ applicativeOps constr t eq (a, b) = monadicIO $ do
236233zipApplicative
237234 :: (IsStream t, Applicative (t IO))
238235 => ([Int] -> t IO Int)
239− -> (t IO (Int, Int) -> t IO (Int, Int))
236+ -> (t IO (Int, Int) -> SerialT IO (Int, Int))
240237 -> ([(Int, Int)] -> [(Int, Int)] -> Bool)
241238 -> ([Int], [Int])
242239 -> Property
@@ -252,7 +249,7 @@ zipApplicative constr t eq (a, b) = monadicIO $ do
252249zipMonadic
253250 :: (IsStream t, Monad (t IO))
254251 => ([Int] -> t IO Int)
255− -> (t IO (Int, Int) -> t IO (Int, Int))
252+ -> (t IO (Int, Int) -> SerialT IO (Int, Int))
256253 -> ([(Int, Int)] -> [(Int, Int)] -> Bool)
257254 -> ([Int], [Int])
258255 -> Property
@@ -271,9 +268,9 @@ zipMonadic constr t eq (a, b) =
271268 equals eq stream2 list
272269
273270monadThen
274− :: (IsStream t, Monad (t IO))
271+ :: Monad (t IO)
275272 => ([Int] -> t IO Int)
276− -> (t IO Int -> t IO Int)
273+ -> (t IO Int -> SerialT IO Int)
277274 -> ([Int] -> [Int] -> Bool)
278275 -> ([Int], [Int])
279276 -> Property
@@ -283,9 +280,9 @@ monadThen constr t eq (a, b) = monadicIO $ do
283280 equals eq stream list
284281
285282monadBind
286− :: (IsStream t, Monad (t IO))
283+ :: Monad (t IO)
287284 => ([Int] -> t IO Int)
288− -> (t IO Int -> t IO Int)
285+ -> (t IO Int -> SerialT IO Int)
289286 -> ([Int] -> [Int] -> Bool)
290287 -> ([Int], [Int])
291288 -> Property
@@ -313,7 +310,7 @@ main = hspec $ do
313310 `shouldReturn` (take 100 $ iterate (+ 1) 0)
314311
315312 let folded :: IsStream t => [a] -> t IO a
316− folded = adapt . serially . (\xs ->
313+ folded = serially . (\xs ->
317314 case xs of
318315 [x] -> return x -- singleton stream case
319316 _ -> foldMapWith (<>) return xs