@@ -905,6 +905,8 @@ data TeeState sL sR bL bR
906-- See also: "Streamly.Data.Fold.Tee"
906-- See also: "Streamly.Data.Fold.Tee"
908+-- Note that nested applications of teeWith do not fuse.
908{-# INLINE teeWith #-}
910{-# INLINE teeWith #-}
909teeWith :: Monad m => (a -> b -> c) -> Fold m x a -> Fold m x b -> Fold m x c
911teeWith :: Monad m => (a -> b -> c) -> Fold m x a -> Fold m x b -> Fold m x c
910teeWith f (Fold stepL initialL extractL) (Fold stepR initialR extractR) =
912teeWith f (Fold stepL initialL extractL) (Fold stepR initialR extractR) =
@@ -1320,7 +1322,7 @@ catRights = filter isRight . lmap (fromRight undefined)
1321-- Definition:
1323-- Definition:
1323−-- >>> both = Fold.lmap (either id id)
1325+-- >>> catEithers = Fold.lmap (either id id)
1325-- /Pre-release/
1327-- /Pre-release/