Skip to content

Commit 003b4b0

Browse files
committed
Comment out the doctest in Pipe.fromFold
1 parent bac422e commit 003b4b0

File tree

1 file changed

+3
-1
lines changed
  • core/src/Streamly/Internal/Data/Pipe

1 file changed

+3
-1
lines changed

core/src/Streamly/Internal/Data/Pipe/Type.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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 #-}

0 commit comments

Comments
 (0)