[Haskell-beginners] [m [a]] -> m [a]
Daniel Fischer
daniel.is.fischer at googlemail.com
Wed Aug 17 13:32:00 CEST 2011
On Wednesday 17 August 2011, 13:20:55, Guy wrote:
> Is there a function which can do this, where m is not mplus?
>
> I would like all the lists to be joined inside the monad with ++.
sequence gives you m [[a]], then an fmap concat (or liftM concat, since
fmap requires an additional Functor constraint) flattens the resulting list
to m [a].
More information about the Beginners
mailing list