Re: Parsec question

2004-01-01 Thread Derek Elkins
On Wed, 31 Dec 2003 19:21:54 -0500 (EST) Mark Carroll [EMAIL PROTECTED] wrote: I tried posting this before but, from my point of view, it vanished. My apologies if it's a duplicate. In http://www.cs.uu.nl/~daan/download/parsec/parsec.html we read, testOr2 = try (string (a)) |

Re: Parsec question

2004-01-01 Thread Tomasz Zielonka
On Wed, Dec 31, 2003 at 07:21:54PM -0500, Mark Carroll wrote: I tried posting this before but, from my point of view, it vanished. My apologies if it's a duplicate. In http://www.cs.uu.nl/~daan/download/parsec/parsec.html we read, testOr2 = try (string (a)) | string (b) or

Re: Parsec question

2004-01-01 Thread Mark Carroll
Thanks to Tom for his interesting points. I am still developing an inuition for how the error reporting goes. (-: On Thu, 1 Jan 2004, Derek Elkins wrote: (snip) testOr3 = do{ try (string (a); char ')'; return (a) } (snip) example both issues come up. If we successfully parse the (a then

Parsing library

2004-01-01 Thread James Ealing
I'm trying to make use of the combinatorial parsing library to process strings. However, I can't figure out the correct syntax for the (|||) (^^^) () (^^) and (^^) functions. Can anyone see how to do it? If so it'd be really useful if you could put down a couple of examples of how each is used.  

Re: Perspectives on learning and using Haskell

2004-01-01 Thread Graham Klyne
At 17:44 23/12/03 -0500, Derek Elkins wrote: On Tue, 23 Dec 2003 17:26:20 + Graham Klyne [EMAIL PROTECTED] wrote: (moved to Haskell-Cafe as this reply might generate several more) I've spent part of the past few months learning Haskell and developing a moderately sized application. I came

RE: no continuations

2004-01-01 Thread Kevin S. Millikin
On Tuesday, December 30, 2003 5:04 PM, Kevin S. Millikin [SMTP:[EMAIL PROTECTED] wrote: Oh, sure. I didn't mean to quibble with the idea that continuations are computational effects. Just wanted to point out that (I think) you can't macro express mutation with call/cc, unless you've already

Re: Perspectives on learning and using Haskell

2004-01-01 Thread ajb
G'day all. Quoting Graham Klyne [EMAIL PROTECTED]: (2) I find that I spend a far greater portion of my time *thinking* about what I'm trying to do than actually coding it. There used to be an adage in the software industry that programmer productivity in lines-of-code per day was

Re: Module creation

2004-01-01 Thread Glynn Clements
J M van Berchem wrote: New to Haskell, I got a version, through Fink, for my Mac OS X. I like the interpreter very much, but I do not see how I may get out of Prelude in order to write a program. Use a text editor, then load the file with :load Foo.hs. You can't type definitions into