add concatMapM to base in control.monad

Carter Schonwald carter.schonwald at gmail.com
Fri Feb 8 17:04:10 UTC 2019


friend asked me to raise this

previously https://ghc.haskell.org/trac/ghc/ticket/2042
seems like it iddn't happen last time because base lived outside of ghc?

-- | The 'concatMapM' function generalizes 'concatMap' to arbitrary monads.
concatMapM        :: (Monad m) => (a -> m [b]) -> [a] -> m [b]
concatMapM f xs   =  liftM concat (mapM f xs)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20190208/1c250314/attachment.html>


More information about the Libraries mailing list