Bulat Ziganshin | 16 May 12:32

Re: Std lib equivalent for liftM concat . sequence

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
concatM

--

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin <at> gmail.com

Gmane