Add a note about unfold/fromList fusion
commit28d996539129736c178804a7c74bd4647ce705c2
authorHarendra Kumar <harendra@composewell.com>
dateThu 7 Oct 2021, 17:22 (5 years ago)
parent7711796
src/Streamly/Internal/Data/Unfold.hs+3
@@ -516,6 +516,9 @@ consM action unf = Unfold step inject
516516 Skip s -> Skip (Right (Stream step1 s))
517517 Stop -> Stop) <$> step1 defState st
518518
519+-- XXX Check if "unfold (fromList [1..10])" fuses, if it doesn't we can use
520+-- rewrite rules to rewrite list enumerations to unfold enumerations.
521+--
519522-- | Convert a list of pure values to a 'Stream'
520523--
521524-- /Since: 0.8.0/