RE: no continuations

2004-01-01 Thread oleg
Kevin S. Millikin wrote: > It sure looks like the example contradicts the assertion, but I happen > to know that there is a set! (or some other assignment) in the macro > expansion of define. I'm just using call/cc to get at that, rather > than getting at the one in the expansion of letrec. I

RE: foldr

2004-01-01 Thread Garner, Robin
Title: RE: foldr It's not too difficult to do: think 'fold map' and put it in the form that foldr needs. cheers -Original Message- From: James Ealing [mailto:[EMAIL PROTECTED]] Sent: Friday, 02 January, 2004 1:54 PM To: [EMAIL PROTECTED] Subject: foldr Hi all, If I have a fun

foldr

2004-01-01 Thread James Ealing
Hi all, If I have a function: it f [a0, a1, a2, ...] = [a0, f a1, f (f a2), ...] Is there any way of expressing it f as an instance of foldr? Many thanks, Jim Yahoo! Messenger - Communicate instantly..."Ping" your fri

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

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 indep

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 alread

Module creation

2004-01-01 Thread J & M van Berchem
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. Could you advise me ? Thanks in advanceJacques van Berchem ___ Haske

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 ca

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: 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 >

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)") > > <|> strin

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)") >