Skip to content

Commit 4a11d23

Browse files
committed
Merge branch 'master' of github.com:haskell-streaming/streaming
2 parents c26ed66 + 1f1846e commit 4a11d23

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Streaming/Prelude.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,11 +1118,11 @@ foldrM step = loop where
11181118
-- | @for@ replaces each element of a stream with an associated stream. Note that the
11191119
-- associated stream may layer any functor.
11201120
for :: (Monad m, Functor f) => Stream (Of a) m r -> (a -> Stream f m x) -> Stream f m r
1121-
for str0 act = loop str0 where
1121+
for str0 f = loop str0 where
11221122
loop str = case str of
11231123
Return r -> Return r
11241124
Effect m -> Effect $ fmap loop m
1125-
Step (a :> rest) -> act a *> loop rest
1125+
Step (a :> as) -> f a *> loop as
11261126
{-# INLINABLE for #-}
11271127

11281128
-- -| Group layers of any functor by comparisons on a preliminary annotation
@@ -1370,7 +1370,7 @@ mapM f = loop where
13701370
49 :> ()
13711371
13721372
-}
1373-
mapM_ :: Monad m => (a -> m b) -> Stream (Of a) m r -> m r
1373+
mapM_ :: Monad m => (a -> m x) -> Stream (Of a) m r -> m r
13741374
mapM_ f = loop where
13751375
loop str = case str of
13761376
Return r -> return r

0 commit comments

Comments
 (0)