Re: GHCi 6.0.1 on Mac OS X + emacs hangs; solution and patch

2003-08-27 Thread Gregory Wright
On Tuesday, August 26, 2003, at 08:23 AM, Simon Marlow wrote: The problem is caused by InteractiveUI.hs. It suppresses the prompt when ghci's stdin is not a tty (is_tty is false). Is there ever a reason to do this? emacs needs the prompt to determine when ghci's output has ended. If it never

Segmentation fault with GHCi 6.0

2003-08-27 Thread George Russell
What is going on here? Is it already fixed in 6.1? # uname -a Linux denebola 2.4.19-4GB #2 Mon Mar 31 10:57:24 CEST 2003 i686 unknown # ghc DynExcep.hs -c -fglasgow-exts # ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. /

For Your Perusal.

2003-08-27 Thread dominicoshoma
BARRISTER DOMINIC OSHOMA CO. FOR YOUR KIND ATTENTION: RE: REQUEST FOR MUTUALLY BENEFITTING ENDEAVOUR. I humbly crave your indulgence in sending you this mail, if the contents does not meet with your personal and business ethics, I appologise in advance. I am barrister Dominic Oshoma (

ghci with -prof

2003-08-27 Thread Hal Daume
running ghci with -prof turned on makes it die immediately (with an appropriate message about this combination being illegal). however, i find that i would almost always *rather* run ghci with -prof turned on than without it. i don't particularly want to create profiles, but i'd really like

CONFIDENCIAL BUSINESS ASISTANCE.

2003-08-27 Thread Dickson
Good Day Friend, With warm heart I offer my friendship, and my greetings, and I hope this letter meets you in good time. It will be surprising to you to receive this proposal from me since you do not know me personally. However, I am sincerely seeking your confidence in this transaction, which I

RE: ghci with -prof

2003-08-27 Thread Simon Marlow
running ghci with -prof turned on makes it die immediately (with an appropriate message about this combination being illegal). however, i find that i would almost always *rather* run ghci with -prof turned on than without it. i don't particularly want to create profiles, but i'd really

Content violation

2003-08-27 Thread Cliff_SMTP_Gateway
Content violation found in email message. From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Details Matching Subject: re: details ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Interval arithmetic

2003-08-27 Thread Jonas Ritter
Hi all, I am interested in interval arithmetic. Does anyone know something about haskell implementations in this domain? It would be nice to have a datatype Interval with the elementary operations {+,-,*,/}, where + :: Intervall - Intervall - Intervall (a,b) + (c,d) = (a+c,b+d) - :: Intervall

Exhaustive Pattern-Matching

2003-08-27 Thread Steffen Mazanek
Hello, I have a question about pattern-matching. In the Haskell-report it is not postulated, that pattern matching has to be exhaustive. Would it be possible at all to implement an algorithm, which checks Haskell-style patterns for exhaustiveness? What kinds of complication can be expected?

Re: Need some help please

2003-08-27 Thread Nick Name
On Wed, 27 Aug 2003 15:08:32 +0100 Rajiv Patel [EMAIL PROTECTED] wrote: 1.a conditional expression This one uses case so it should solve your homework; moreover it uses an orthogonal matrix (as long as you pay attention to the value assigned to f, of course) so it is safe. cut here

RE: Exhaustive Pattern-Matching

2003-08-27 Thread Simon Marlow
I have a question about pattern-matching. In the Haskell-report it is not postulated, that pattern matching has to be exhaustive. Would it be possible at all to implement an algorithm, which checks Haskell-style patterns for exhaustiveness? What kinds of complication can be expected?

Re: Exhaustive Pattern-Matching

2003-08-27 Thread Iavor Diatchki
hello, Steffen Mazanek wrote: Hello, I have a question about pattern-matching. In the Haskell-report it is not postulated, that pattern matching has to be exhaustive. Would it be possible at all to implement an algorithm, which checks Haskell-style patterns for exhaustiveness? What kinds of

Re: Need some help please.

2003-08-27 Thread b . i . mills
What is Nick Name doing? Trolling? I don't approve of people getting homework done on this emailing list, you learn more from doing, but baiting newbies is worse. You want to give them the idea that Haskell is complex and abtruse? I need to define a function called safetail; it's like tail

RE: Need some help please.

2003-08-27 Thread Hal Daume
There's a small problem with this solution, namely that it requires you to have an Eq instance for the elements in the list. You can fix this by using 'null' from the Prelude. -- Hal Daume III | [EMAIL PROTECTED] Arrest this man, he talks in maths.

Re: Haskell indentation

2003-08-27 Thread Derek Elkins
On Tue, 26 Aug 2003 11:58:20 -0700 John Meacham [EMAIL PROTECTED] wrote: On Tue, Aug 26, 2003 at 02:00:32PM +0200, Per Larsson wrote: I have problems finding a pleasing indentation style for haskell code. Especially nested do-blocks have a tendency to run away to the right margin. When

ghc install redhat 7.3

2003-08-27 Thread Mark Espinoza
Hello, I have been trying to install ghc on my redhat 7.3 system. I have about a 1.2 ghz processor. I got ghc-5.04.2 installed from an rpm. The ./configure for ghc-6.0.1 seemed to work fine. When I ran make it went for about an hour and a half, at which time it seemed to have been hung up for

Re: ghc install redhat 7.3

2003-08-27 Thread David Roundy
On Wed, Aug 27, 2003 at 07:41:45AM -0500, Mark Espinoza wrote: Hello, I have been trying to install ghc on my redhat 7.3 system. I have about a 1.2 ghz processor. I got ghc-5.04.2 installed from an rpm. The ./configure for ghc-6.0.1 seemed to work fine. When I ran make it went for about

RE: Haskell indentation

2003-08-27 Thread Hal Daume
Just my 2 cents... The first is that I always put the where for local function definitions on a new line, e.g. foo x = x + a + b where a = 1 + x b = 2 * x I find this a lot clearer and prettier than, foo x = x + a + b where a = 1 + x b = 2 * x I used to do it

Prefix and postfix operators

2003-08-27 Thread Eugene Nonko
Title: Prefix and postfix operators Hello, Are there any plans to extend Haskell parser to support prefix and postfix operators? It will be just great for domain-specific languages. It always kind of bothered me that unary minus is special. Thanks, Eugene

Poll: How to respond to homework questions

2003-08-27 Thread Tom Pledger
Hi. I'm curious about what the people on this list consider appropriate, as responses to homework questions. Even if there isn't a consensus, it may be interesting to see how opinion is divided. Please consider the following. (A) Give a perfect answer. (B) Give a subtly flawed answer. (C) Give

Re: Poll: How to respond to homework questions

2003-08-27 Thread Matthew Donadio
Tom Pledger wrote: I'm curious about what the people on this list consider appropriate, as responses to homework questions. Even if there isn't a consensus, it may be interesting to see how opinion is divided. Please consider the following. (A) Give a perfect answer. (B) Give a subtly