File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
11201120for :: (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
1370137049 :> ()
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
13741374mapM_ f = loop where
13751375 loop str = case str of
13761376 Return r -> return r
You can’t perform that action at this time.
0 commit comments