[GHC] #844: panic on conflicting patterns in TH splice

2006-08-04 Thread GHC
#844: panic on conflicting patterns in TH splice -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone:

Re: [GHC] #840: GHC on loosing its handles takes 100% CPU

2006-08-04 Thread Lennart Augustsson
It happens all the time to me that GHC doesn't die properly on windows. Every so often I have to kill a few straggling ghc processes. They all spin consuming 100% CPU when this happens. -- Lennart On Aug 2, 2006, at 10:09 , Bulat Ziganshin wrote: Hello GHC, Wednesday, August 2,

Re: [GHC] #844: panic on conflicting patterns in TH splice

2006-08-04 Thread GHC
#844: panic on conflicting patterns in TH splice ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone:

Re: [GHC] #844: panic on conflicting patterns in TH splice

2006-08-04 Thread GHC
#844: panic on conflicting patterns in TH splice ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone:

RE: [GHC] #840: GHC on loosing its handles takes 100% CPU

2006-08-04 Thread Simon Peyton-Jones
I'm not doubting that it's genuine -- but can anyone make a reproducible test case? Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-bugs- | [EMAIL PROTECTED] On Behalf Of Lennart Augustsson | Sent: 04 August 2006 13:47 | To: Bulat Ziganshin | Cc: GHC;

Re: [GHC] #840: GHC on loosing its handles takes 100% CPU

2006-08-04 Thread Sigbjorn Finne
But as long as it's Haskell code consuming all those CPU cycles, it can't be all bad? :) If any of you are running into this while invoking ghci.exe, you may want to play with using ghc.exe --interactive instead to see if that improves matters. Not using ghci.exe avoids a layer of

[GHC] #845: irrefutable pattern matching on unboxed tuple causes panic

2006-08-04 Thread GHC
#845: irrefutable pattern matching on unboxed tuple causes panic --+- Reporter: Jason McCarty [EMAIL PROTECTED] |Owner: Type: bug| Status: new

Re: [GHC] #821: implicit parameters and type synonyms

2006-08-04 Thread GHC
#821: implicit parameters and type synonyms -+-- Reporter: [EMAIL PROTECTED] | Owner: Type: support request | Status: closed Priority: normal | Milestone:

Re: GHC 6.4.3 is stalled

2006-08-04 Thread Simon Marlow
I just realised I sent the following only to [EMAIL PROTECTED], not glasgow-hasell-users: Simon Marlow wrote: Just a quick note to say thanks for all the offers of help on 6.4.3 - it's very encouraging to see so many people willing to offer their time and machines. The state of play so far:

Re: GHC 6.4.3 is stalled

2006-08-04 Thread Gregory Wright
Hi Simon, I'll set up ssh access to a dual processor FreeBSD box. It should be ready by later today (I'll send a note). Best, Greg On Aug 4, 2006, at 8:08 AM, Simon Marlow wrote: I just realised I sent the following only to [EMAIL PROTECTED], not glasgow-hasell-users: Simon Marlow wrote:

Re: [Haskell] thread-local variables

2006-08-04 Thread Frederik Eaton
As for the subject under discussion (thread local state), I am personally sceptical about it. Why do we need it? Are we talking about safety or just convenience/API elegance? I've never encountered a situation where I've needed thread local state, (but this does not necessarily make it

Re: [Haskell] thread-local variables

2006-08-04 Thread Einar Karttunen
On 04.08 17:29, Frederik Eaton wrote: might, in Adrian Hey and Einar Karttunen's world, become: newMain host environment program_args network_config locale terminal_settings stdin stdout stderr = do hPutStrLn stdout (defaultEncoding locale) Hello world Actually I have

[Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Imam Tashdid ul Alam
what's the difference between data and co-data exactly? or between inductive data types and co-inductive data types? can you give me some reference points that explain these? (read 56)::Integer does it in fact pass the type (Integer) to the function (read)? I guess what we want is for the

Re: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Janis Voigtlaender
Imam Tashdid ul Alam wrote: what's the difference between data and co-data exactly? or between inductive data types and co-inductive data types? In Haskell there is no such difference, as inductive and coinductive types coincide in the semantic setting in which Haskell is usually

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-08-04 Thread David Roundy
On Sat, Jul 29, 2006 at 05:35:30PM -0700, Andrew Pimlott wrote: On Sat, Jul 29, 2006 at 02:59:06AM +0200, Udo Stenzel wrote: Andrew Pimlott wrote: Second, foo is just as good a directory as foo/ to the system ...unless you have both (think Reiser4) or you want to create the file (I

Re: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Brian Hulley
Mark T.B. Carroll wrote: Janis Voigtlaender [EMAIL PROTECTED] writes: (snip) Yes, as long as enough type information is provided for the typechecker to decide what is the correct instance to use. (snip) I've always been a little surprised when this doesn't happen more widely for things other

Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Bulat Ziganshin
Hello Mark, Friday, August 4, 2006, 3:03:54 PM, you wrote: I've always been a little surprised when this doesn't happen more widely for things other than instances. For instance, when IntMap.size, Map.size and Set.size (or whatever) are all in scope as size, it should be fairly obvious what

Re: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Martin Percossi
Bulat Ziganshin wrote: this is called ad-hoc polymorphism which is not supported by Haskell. instead Haskell supports parametric polymorphism via type classes. I think you are wrong here Bulat. In fact, I think a) Haskell supports parametric polymorphism, e.g. id :: t - t id x = x b) Haskell

[Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Hans van Thiel
Hello All, I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? I can think of the following possibilities only: 1) Haskell is too slow for practical use, but the benchmarks I found appear to contradict this. 2) Input and output are not

Re: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Brian Hulley
Martin Percossi wrote: Bulat Ziganshin wrote: this is called ad-hoc polymorphism which is not supported by Haskell. instead Haskell supports parametric polymorphism via type classes. I think you are wrong here Bulat. In fact, I think a) Haskell supports parametric polymorphism, e.g. id :: t

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Donn Cave
On Fri, 4 Aug 2006, Hans van Thiel wrote: ... Are there other reasons why there seem to be just a few thousand (hundred?) Haskell programmers in the world, compared to the 3 million Java programmers and x million C/C++ programmers? I can think of several other possible reasons - 6.

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Brandon Moore
Hans van Thiel wrote: Hello All, I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? I can think of the following possibilities only: 1) Haskell is too slow for practical use, but the benchmarks I found appear to contradict this. 2)

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Robert Dockins
On Aug 4, 2006, at 1:12 PM, Martin Percossi wrote: Hi, I'm wondering what the rationale was for not allowing capitalized variable names (and uncapitalized type names and constructors). I can only think of two arguments, and IMHO both of them are bad: 1. Enforces a naming convention.

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Brandon Moore
Martin Percossi wrote: Hi, I'm wondering what the rationale was for not allowing capitalized variable names (and uncapitalized type names and constructors). I can only think of two arguments, and IMHO both of them are bad: I'm not so sure about variable names and constructors, but the type

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Paul Hudak
Ok, you asked for it, so here's my worst :-) 1) Here's what the History of Haskell has to say about this: Namespaces were a point of considerable discussion in the Haskell Committee. We wanted the user to have as much freedom as possible, while avoiding any form of ambiguity. So we

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Udo Stenzel
Hans van Thiel wrote: I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? Of course. Corporations are conservative to the point of being boneheaded. So to avoid risk, they all went on the internet and said, Gee, I can't find any

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Brian Hulley
Hans van Thiel wrote: Hello All, I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? I'm actually working on a Haskell program which I hope to release as a commercial application. The biggest problem I'm encountering is the lack

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Martin Percossi
Paul Hudak wrote: Ok, you asked for it, so here's my worst :-) You're too gentle! I was expecting some serious community flagellation for my heretical remarks! 1) Here's what the History of Haskell has to say about this: Namespaces were a point of considerable discussion in the

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Tony Finch
On Fri, 4 Aug 2006, Martin Percossi wrote: I agree that naming can be abused. But I think it should be *me*, the programmer, or in the limit ghc, the glorious compiler (but only because of unresolvable ambiguities), who decides it -- not *you*, the language implementor!!! ;-) The ML

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Donn Cave
On Fri, 4 Aug 2006, Udo Stenzel wrote: Hans van Thiel wrote: I'm wondering why I can't find any commercial Haskell applications on the Internet. Is there any reason for this? Of course. Corporations are conservative to the point of being boneheaded. So to avoid risk, they all went on the

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Henning Thielemann
On Fri, 4 Aug 2006, Brian Hulley wrote: 4) Haskell is open source and licensing restrictions forbid commercial applications. I haven't seen any such restrictions, but is this a problem for the standard modules? You can discover the licensing situation by downloading the GHC source (or

Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Bulat Ziganshin
Hello Brian, Friday, August 4, 2006, 8:50:25 PM, you wrote: class Bar a b where bar :: a - b (*) But there's one exception: you can't use typeclasses to resolve overloadings between values and functions because non-function values don't have a type of the form A - B:

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Bulat Ziganshin
Hello Hans, Friday, August 4, 2006, 8:17:42 PM, you wrote: 1) Haskell is too slow for practical use, but the benchmarks I found appear to contradict this. it's an advertisement :D just check yourself 2) Input and output are not good enough, in particular for graphical user interfacing

Re[2]: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread Bulat Ziganshin
Hello Jason, Friday, August 4, 2006, 10:01:31 PM, you wrote: 15. OO is now tried and true in industry. I would say it's far from optimal but people do know they can build large applications (say ~100k lines of C++). it's medium size. GHC is larger :) -- Best regards, Bulat

[Haskell-cafe] fast image processing in haskell?

2006-08-04 Thread Jeff Briggs
Hello, I am attempting to process images captured from a webcam. My aim is to do so, in real time, at the frame rate of the camera. I'm using GHC 6.4.2 with -O3. A frame consists of ~100k 24bit colour values. The webcam is interfaced through FFI bindings to some C++ -- these are all labelled

Re: Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Brian Hulley
Bulat Ziganshin wrote: Hello Brian, Friday, August 4, 2006, 8:50:25 PM, you wrote: class Bar a b where bar :: a - b (*) But there's one exception: you can't use typeclasses to resolve overloadings between values and functions because non-function values don't have a

RE: [Haskell-cafe] REALLY simple STRef examples

2006-08-04 Thread Simon Peyton-Jones
Chad | x = runST $ return (1::Int) This code looks simple, but it isn't. Here are the types: runST :: forall a. (forall s. ST s a) - a ($) :: forall b c. (b-c) - b - c return 1 :: forall s. ST s Int To typecheck, we must instantiate b with (forall s. ST

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Udo Stenzel
Martin Percossi wrote: Paul Hudak wrote: foo x y = ... We know that x and y are formal parameters, whereas if they were capitalized we'd know that they were constructors. I agree that naming can be abused. But I think it should be *me* ... Oh, you like to decide lexical ambiguities.

[Haskell-cafe] Type hackery help needed!

2006-08-04 Thread Niklas Broberg
Hi fellow Haskelleers, I have a tricky problem that I just can't seem to solve. The problem is one of unresolved overloading, much like the (show . read) issue, but unlike that particular problem I feel there should be a solution to the one I'm wrestling with. I've tried to strip away all the

Re: [Haskell-cafe] fast image processing in haskell?

2006-08-04 Thread Chris Kuklewicz
Jeff Briggs wrote: Hello, I am attempting to process images captured from a webcam. My aim is to do so, in real time, at the frame rate of the camera. I'm using GHC 6.4.2 with -O3. A frame consists of ~100k 24bit colour values. The webcam is interfaced through FFI bindings to some C++ -- these

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Brian Hulley
Martin Percossi wrote: Hi, I'm wondering what the rationale was for not allowing capitalized variable names (and uncapitalized type names and constructors). I can only think of two arguments, and IMHO both of them are bad: 1. Enforces a naming convention. Fine - but my view is that this doesn't

Re: [Haskell-cafe] Why shouldn't variable names be capitalized?

2006-08-04 Thread Lennart Augustsson
There are two places where confusion could arise if you didn't have the case distinction in Haskell: pattern matching (does a name refer to a constructor or not) and type expressions (is it a type variable or not). In Haskell the distinction is made by case, but this is far from the only

Re: [Haskell-cafe] Why Not Haskell?

2006-08-04 Thread ajb
G'day all. Quoting Udo Stenzel [EMAIL PROTECTED]: Uh, this one's wrong. Does C++ of 15 years ago support today's programs? C++ of _today_ doesn't support today's programs in some cases. Just ask the Boost developers about the various workarounds they still have to deal with. No. C++ of 10

Re: [Haskell-cafe] Monad Imparative Usage Example

2006-08-04 Thread Kaveh Shahbazian
Thanks All This is about my tries to understand monads and handling state - as you perfectly know - is one of them. I have understood a little about monads but that knowledge does not satidfy me. Again Thankyou On 8/2/06, Duncan Coutts [EMAIL PROTECTED] wrote: On Wed, 2006-08-02 at 13:26 +0330,