@@ -196,7 +196,7 @@ _identity _ start = drainGeneration UF.identity start
196196{-# INLINE _const #-}
197197_const :: Monad m => Int -> Int -> m ()
198198_const size start =
199− drainGeneration (UF.take size (UF.yieldM (return start))) undefined
199+ drainGeneration (UF.take size (UF.fromEffect (return start))) undefined
200200
201201{-# INLINE unfoldrM #-}
202202unfoldrM :: Monad m => Int -> Int -> m ()
@@ -450,7 +450,7 @@ toNull value start =
450450 -}
451451 u = src `UF.bind` \x ->
452452 src `UF.bind` \y ->
453− UF.yield (x + y)
453+ UF.fromPure (x + y)
454454 in UF.fold FL.drain u start
455455
456456
@@ -468,7 +468,7 @@ toNull3 value start =
468468 -}
469469 u = src `UF.bind` \x ->
470470 src `UF.bind` \y ->
471− UF.yield (x + y)
471+ UF.fromPure (x + y)
472472 in UF.fold FL.drain u start
473473
474474{-# INLINE toList #-}
@@ -484,7 +484,7 @@ toList value start = do
484484 -}
485485 u = src `UF.bind` \x ->
486486 src `UF.bind` \y ->
487− UF.yield (x + y)
487+ UF.fromPure (x + y)
488488 in UF.fold FL.toList u start
489489
490490{-# INLINE toListSome #-}
@@ -500,7 +500,7 @@ toListSome value start = do
500500 -}
501501 u = src `UF.bind` \x ->
502502 src `UF.bind` \y ->
503− UF.yield (x + y)
503+ UF.fromPure (x + y)
504504 in UF.fold FL.toList (UF.take 1000 u) start
505505
506506{-# INLINE filterAllOut #-}
@@ -517,7 +517,7 @@ filterAllOut value start = do
517517 src `UF.bind` \y ->
518518 let s = x + y
519519 in if s < 0
520− then UF.yield s
520+ then UF.fromPure s
521521 else UF.nilM (return . const ())
522522 in UF.fold FL.drain u start
523523
@@ -535,7 +535,7 @@ filterAllIn value start = do
535535 src `UF.bind` \y ->
536536 let s = x + y
537537 in if s > 0
538− then UF.yield s
538+ then UF.fromPure s
539539 else UF.nilM (return . const ())
540540 in UF.fold FL.drain u start
541541
@@ -553,7 +553,7 @@ filterSome value start = do
553553 src `UF.bind` \y ->
554554 let s = x + y
555555 in if s > 1100000
556− then UF.yield s
556+ then UF.fromPure s
557557 else UF.nilM (return . const ())
558558 in UF.fold FL.drain u start
559559
@@ -572,7 +572,7 @@ breakAfterSome value start =
572572 let s = x + y
573573 in if s > 1100000
574574 then error "break"
575− else UF.yield s
575+ else UF.fromPure s
576576 in do
577577 (_ :: Either ErrorCall ()) <- try $ UF.fold FL.drain u start
578578 return ()