<div dir="ltr"><div>I'm neutral to slightly negative on the proposal, but if one is going to put it forth, t<span style="background-color:rgb(35,34,34);color:rgb(255,255,255);float:none;display:inline!important">his is a pretty crippled version of what the combinator could be.</span></div><div>Switching liftM to fmap, and mapM to traverse gets you Applicative m.</div><div><br></div><div>There is no reason to limit this to Monad.</div><div><br></div><div>-Edward</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 8, 2019 at 12:04 PM Carter Schonwald <<a href="mailto:carter.schonwald@gmail.com">carter.schonwald@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">friend asked me to raise this<div><br></div><div>previously <a href="https://ghc.haskell.org/trac/ghc/ticket/2042" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/2042</a></div><div>seems like it iddn't happen last time because base lived outside of ghc?</div><div><br></div><div><pre class="gmail-m_2131383468859847010gmail-wiki" style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto;color:rgb(0,0,0);font-size:13px">-- | The 'concatMapM' function generalizes 'concatMap' to arbitrary monads.
concatMapM        :: (Monad m) => (a -> m [b]) -> [a] -> m [b]
concatMapM f xs   =  liftM concat (mapM f xs)</pre></div></div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>