File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/Streamly/Internal/Data/Pipe Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -653,13 +653,15 @@ scanFold (Fold fstep finitial fextract _) =
653653 produce (FoldProduceInit st x) = consume (FoldConsumeGo st) x
654654 produce FoldProduceStop = return Stop
655655
656+ -- XXX The doctest for Pipe.fromFold fails with "[]" as the result.
657+
656658-- | Create a singleton pipe from a fold.
657659--
658660-- Pipes do not support finalization yet. This does not finalize the fold
659661-- when the stream stops before the fold terminates. So cannot be used on folds
660662-- that require such finalization.
661663--
662- -- >>> Stream.toList $ Stream.pipe (Pipe.fromFold Fold.sum) $ Stream.fromList [1..5::Int]
664+ -- >> Stream.toList $ Stream.pipe (Pipe.fromFold Fold.sum) $ Stream.fromList [1..5::Int]
663665-- [15]
664666--
665667{-# INLINE fromFold #-}
You can’t perform that action at this time.
0 commit comments