
6 May
2007
6 May
'07
6:58 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, May 06, 2007 at 07:44:53PM +0100, Frederik Eaton wrote:
Anyone know why Data.Set is not a Monad? Or Data.Map?
I'm not sure why it ought to be. I assume that you want return = singleton and fail _ = emptySet, but how do you propose to define (>>=)? - -- Daniel Franke df@dfranke.us http://www.dfranke.us |----| =|\ \\\\ || * | -|-\--------- Man is free at the instant he wants to be. -----| =| \ /// --Voltaire -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGPiU/KTA17JAC/eYRAkDSAJ98FGzjOUP77FpXHrnsrvmvkkQI/gCcC2A1 t+AFrEIgJGluZLXe+nYWV3Y= =Hoh2 -----END PGP SIGNATURE-----