mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-10 05:39:31 +03:00
lib: document mapM'
[ci skip]
This commit is contained in:
parent
49f286dc70
commit
b34b262c76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user