[Haskell-cafe] Std lib equivalent for liftM concat . sequence

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri May 16 06:32:49 EDT 2008

Hello Alistair,

Friday, May 16, 2008, 2:12:45 PM, you wrote:

>> concatM = liftM concat . sequence

> but found no such thing in the std libs, except perhaps for msum (I
> don't want to add instances for MonadPlus. Should I have to?). Have I
> missed something trivial?

1. it's easy to define yourself
2. it's not widely used. at least, i have in my program for, foreach,
concatMapM, filterM and lot of other monadic operations, but no one

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list