@@ -333,11 +333,10 @@ tapOffsetEvery offset n (Fold fstep initial extract) (Stream step state) =
333pollCounts
333pollCounts
334 :: MonadAsync m
334 :: MonadAsync m
335 => (a -> Bool)
335 => (a -> Bool)
336− -> (Stream m Int -> Stream m Int)
336+ -> (Stream m Int -> m b)
338 -> Stream m a
337 -> Stream m a
339 -> Stream m a
338 -> Stream m a
340−pollCounts predicate transf fld (Stream step state) = Stream step' Nothing
339+pollCounts predicate fld (Stream step state) = Stream step' Nothing
343 {-# INLINE_LATE step' #-}
342 {-# INLINE_LATE step' #-}
@@ -347,8 +346,8 @@ pollCounts predicate transf fld (Stream step state) = Stream step' Nothing
347 -- However, an Int on a 32-bit machine may overflow quickly.
346 -- However, an Int on a 32-bit machine may overflow quickly.
348 countVar <- liftIO $ Prim.newIORef (0 :: Int)
347 countVar <- liftIO $ Prim.newIORef (0 :: Int)
349 tid <- forkManaged
348 tid <- forkManaged
350− $ void $ fold fld
349+ $ void $ fld
351− $ transf $ Prim.toStreamD countVar
350+ $ Prim.toStreamD countVar
352 return $ Skip (Just (countVar, tid, state))
351 return $ Skip (Just (countVar, tid, state))
354 step' gst (Just (countVar, tid, st)) = do
353 step' gst (Just (countVar, tid, st)) = do