lib: document mapM'

[ci skip]
This commit is contained in:
Simon Michael 2019-02-16 15:57:29 -08:00
parent 49f286dc70
commit b34b262c76

View File

@ -220,6 +220,7 @@ sequence' ms = do
x <- m
go (h . (x :)) ms
-- | Like mapM but uses sequence'.
{-# INLINABLE mapM' #-}
mapM' :: Monad f => (a -> f b) -> [a] -> f [b]
mapM' f = sequence' . map f