on master help sign in
Make some misc doc fixes
c3cf9ccHarendra Kumar
core/src/Streamly/Internal/Data/Parser.hs+2−2
@@ -678,8 +678,8 @@ groupBy :: MonadCatch m => (a -> a -> Bool) -> Fold m a b -> Parser m a b
678groupBy eq = D.toParserK . D.groupBy eq
678groupBy eq = D.toParserK . D.groupBy eq
679
679
680-- | Unlike 'groupBy' this combinator performs a rolling comparison of two
680-- | Unlike 'groupBy' this combinator performs a rolling comparison of two
681−-- successive elements in the input stream. Assuming the input stream to the
681+-- successive elements in the input stream. Assuming the input stream
682−-- parser is @[a,b,c,...]@ and the comparison function is @cmp@, the parser
682+-- is @[a,b,c,...]@ and the comparison function is @cmp@, the parser
683-- first assigns the element @a@ to the first group, then if @a \`cmp` b@ is
683-- first assigns the element @a@ to the first group, then if @a \`cmp` b@ is
684-- 'True' @b@ is also assigned to the same group. If @b \`cmp` c@ is 'True'
684-- 'True' @b@ is also assigned to the same group. If @b \`cmp` c@ is 'True'
685-- then @c@ is also assigned to the same group and so on. When the comparison
685-- then @c@ is also assigned to the same group and so on. When the comparison
core/src/Streamly/Internal/Data/Stream/StreamD/Transform.hs+1−1
@@ -1265,7 +1265,7 @@ rollingMapM f (Stream step1 state1) = Stream step (RollingMapGo state1 Nothing)
1265 Skip s -> return $ Skip $ RollingMapGo s curr
1265 Skip s -> return $ Skip $ RollingMapGo s curr
1266 Stop -> return Stop
1266 Stop -> return Stop
1267
1267
1268−-- rollingMap is a special case of an incremental sliding fold. It can be
1268+-- | rollingMap is a special case of an incremental sliding fold. It can be
1269-- written as:
1269-- written as:
1270--
1270--
1271-- > fld f = slidingWindow 1 (Fold.foldl' (\_ (x,y) -> f y x)
1271-- > fld f = slidingWindow 1 (Fold.foldl' (\_ (x,y) -> f y x)