16 May 19:51
Re: Std lib equivalent for liftM concat . sequence
From: Miguel Mitrofanov <miguelimo38 <at> yandex.ru>
Subject: Re: Std lib equivalent for liftM concat . sequence
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-16 17:51:40 GMT
Subject: Re: Std lib equivalent for liftM concat . sequence
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-16 17:51:40 GMT
Oops, I was very wrong. Sorry. On 16 May 2008, at 20:13, Miguel Mitrofanov wrote: > Seems to be close to > > sequence :: [ListT m a] -> ListT m a > > Hmm? > > On 16 May 2008, at 14:12, Alistair Bayley wrote: > >> 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 >> _______________________________________________ >> Haskell-Cafe mailing list >> Haskell-Cafe <at> haskell.org >> http://www.haskell.org/mailman/listinfo/haskell-cafe > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe <at> haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed