16 May 12:12
Std lib equivalent for liftM concat . sequence
Alistair Bayley <alistair <at> abayley.org>
2008-05-16 10:12:45 GMT
2008-05-16 10:12:45 GMT
A couple of days ago I had need for: > concatM :: Monad m => [m [a]] -> m [a] > 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? Alistair
RSS Feed