On Tue, May 31, 2011 at 11:31 AM, Ozgur Akgun <ozgurak...@gmail.com> wrote: > Evan, > On 24 May 2011 19:57, Evan Laforge <qdun...@gmail.com> wrote: >> >> On the catMaybes thing, I have a function 'mapMaybe = Maybe.catMaybes >> . map'. I turns out I only ever used catMaybes after mapping a Maybe >> function, so I hardly ever use catMaybes anymore. I suppose it should >> have been maybeMap for consistency with concatMap. > > Just wanted to point out, that function is already defined in Data.Maybe: > http://hackage.haskell.org/packages/archive/base/latest/doc/html/Data-Maybe.html#v:mapMaybe > Hugs :)
Indeed it is, somehow I missed that one and wrote my own instead. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe