[Haskell-cafe] Generalizing catMaybes
Brandon S Allbery KF8NH
allbery at ece.cmu.edu
Sat Jan 8 17:53:30 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
On 1/8/11 07:11 , Conor McBride wrote:
> On 8 Jan 2011, at 11:14, Henning Thielemann wrote:
>> For me, the solutions of Dave Menendez make most sense: Generalize Maybe
>> to Foldable and List to MonadPlus.
> What has it to do with monads? There's no bind in sight.
> Alternative is certainly a more general alternative, but then I
> would say that, wouldn't I? Even that seems a tad too much.
That was my thought too, and no, I didn't actually test first, just tried to
think out what he was doing. Bad idea when half asleep :/
brandon s. allbery [linux,solaris,freebsd,perl] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe