Re: MacOS X (10.2.2) standalone ghc app

2003-01-01 Thread Wolfgang Thaller
Reto Kramer wrote: I'm trying to deliver a self contained app that I developed with ghc 5.04.1 on Mac OS X (10.2.2). It all works well if ghc is installed on the machine, but on a user-machine w/o ghc, the following file is needed: HaskellSupport.framework/Versions/A/HaskellSupport Yes.

Re: Question About lists

2003-01-01 Thread Shlomi Fish
On Wed, 1 Jan 2003, Andrew J Bromage wrote: G'day all. On Mon, Dec 30, 2002 at 01:47:37PM -0600, Artie Gold wrote: One suggestion, though is that you're working too hard; there's really no reason to define a locally defined function. The much simpler: long [] = 0 long (x:xs) = 1 +

Re: Question About lists

2003-01-01 Thread Andrew J Bromage
G'day all. On Wed, 1 Jan 2003, Andrew J Bromage wrote: It has quite different performance characteristics, though. In particular, this uses O(n) stack space whereas the accumulator one uses O(1) stack space. On Wed, Jan 01, 2003 at 12:17:10PM +0200, Shlomi Fish wrote: This is assuming

Re: comonads, io

2003-01-01 Thread Nicolas.Oury
Hello, If I understand what you're saying, it seems that an intuitive view of OI would be : passing a token allowing to do IO operations. We pass the token to the main function. After an operation we give the token to next. It's unsafe to crete a new token. From this, I think the safety become

Re: Lazy streams and unsafeInterleaveIO (another 'safe' solution offered)

2003-01-01 Thread Richard E . Adams
On Sunday, December 22, 2002, at 04:00 AM, Jyrinx wrote: As an experiment for a bigger project, I cooked up a simple program: It asks for integers interactively, and after each input, it spits out the running total. The wrinkle is that the function for calculating the total should be a