lib: document mapM'
[ci skip]
This commit is contained in:
parent
49f286dc70
commit
b34b262c76
@ -220,6 +220,7 @@ sequence' ms = do
|
|||||||
x <- m
|
x <- m
|
||||||
go (h . (x :)) ms
|
go (h . (x :)) ms
|
||||||
|
|
||||||
|
-- | Like mapM but uses sequence'.
|
||||||
{-# INLINABLE mapM' #-}
|
{-# INLINABLE mapM' #-}
|
||||||
mapM' :: Monad f => (a -> f b) -> [a] -> f [b]
|
mapM' :: Monad f => (a -> f b) -> [a] -> f [b]
|
||||||
mapM' f = sequence' . map f
|
mapM' f = sequence' . map f
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user