Re: [Haskell] A collection of related proposals regarding monads

2006-01-08 Thread Cale Gibbard
On 05/01/06, John Meacham [EMAIL PROTECTED] wrote: independent of anything else, giving up error messages on pattern match failures in do notation is not acceptable. so, if the split were to happen, having two methods in MonadZero, one which takes a string argument, would be needed.

RE: [Haskell] A collection of related proposals regarding monads

2006-01-05 Thread Simon Peyton-Jones
| What do people think of the following proposal? Remove fail from the | Monad class. Reinstate MonadZero as a separate class as in Haskell | 1.4. This was debated extensively during the Haskell 98 process. I'm not saying that we made the right decision then, but here's a link to (a part of)

RE: [Haskell] A collection of related proposals regarding monads

2006-01-05 Thread Simon Peyton-Jones
for MonadZero) Simon | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On Behalf Of Simon Peyton-Jones | Sent: 05 January 2006 09:06 | To: Cale Gibbard; Haskell Mailing List | Subject: RE: [Haskell] A collection of related proposals | regarding monads | | | | What do

Re: [Haskell] A collection of related proposals regarding monads

2006-01-05 Thread Conor McBride
Hi folks Wolfgang Jeltsch wrote: Am Mittwoch, 4. Januar 2006 21:54 schrieb Cale Gibbard: I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have some builtin notion

[Haskell] A collection of related proposals regarding monads

2006-01-04 Thread Cale Gibbard
I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have some builtin notion of failure. Indeed, it's becoming common to type the result of some function in an arbitrary

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread ajb
G'day Cale. Quoting Cale Gibbard [EMAIL PROTECTED]: I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have some builtin notion of failure. So do I. We ought to be

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread Wolfgang Jeltsch
Am Mittwoch, 4. Januar 2006 21:54 schrieb Cale Gibbard: I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have some builtin notion of failure. I totally agree! [...]

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread Cale Gibbard
On 04/01/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: G'day Cale. Quoting Cale Gibbard [EMAIL PROTECTED]: I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread Wolfgang Jeltsch
Am Mittwoch, 4. Januar 2006 22:30 schrieb [EMAIL PROTECTED]: [...] Though possible mchoose might be more appropriate. These leading m's are not nice in my opinion. Even more appropriate might be to rationalise some of these naming conventions. Yes, we should remove those m's and use

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread ajb
G'day all. I wrote: My feeling is that do { p - xs; return e } should behave identically (modulo the precise error message if the pattern match fails) to map (\p - e) xs. Your proposal would make it into a map/filter hybrid. Which, of course, it is now. I blame lack of caffeine.

Re: [Haskell] A collection of related proposals regarding monads

2006-01-04 Thread David Menendez
Cale Gibbard writes: I personally feel that the inclusion of 'fail' in the Monad class is an ugly solution to the problem of pattern matching, and gives the incorrect impression that monads should have some builtin notion of failure. Indeed, it's becoming common to type the result of some