[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-----
Hash: SHA1
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/
iEYEARECAAYFAk0oln8ACgkQIn7hlCsL25WL1gCfepiOrw2ptUKah1KNj1vychnZ
1dMAoL2CmnbV2T/ravh6fuc8oyzlncrt
=Hx/b
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list