Re: [GHC] #806: hGetBufNonBlocking doesn't work with -threaded on Windows

2006-09-25 Thread GHC
#806: hGetBufNonBlocking doesn't work with -threaded on Windows -+-- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: new Priority: normal |

Re: [GHC] #690: Accept source files in encodings other than UTF-8

2006-09-25 Thread GHC
#690: Accept source files in encodings other than UTF-8 ---+ Reporter: simonmar | Owner: Type: task | Status: new Priority: normal| Milestone:

Re: [GHC] #690: Accept source files in encodings other than UTF-8

2006-09-25 Thread GHC
#690: Accept source files in encodings other than UTF-8 ---+ Reporter: simonmar | Owner: Type: task | Status: new Priority: normal| Milestone:

Re[2]: [GHC] #806: hGetBufNonBlocking doesn't work with -threaded on Windows

2006-09-25 Thread Bulat Ziganshin
Hello GHC, Monday, September 25, 2006, 4:55:52 PM, you wrote: #806: hGetBufNonBlocking doesn't work with -threaded on Windows is not it the same problem as my favorite http://hackage.haskell.org/trac/ghc/ticket/637 ? i.e. lack of separate IO Manager thread makes it impossible to implement

Re: [GHC] #908: Deriving MPTC panic: tcSplitTyConApp

2006-09-25 Thread GHC
#908: Deriving MPTC panic: tcSplitTyConApp -+-- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: closed Priority: normal | Milestone:

Re: Summary of GHC 6.6 test suite failures on MSYS/MinGW

2006-09-25 Thread Ian Lynagh
On Wed, Sep 13, 2006 at 12:23:27PM -0500, Brian Smith wrote: I finished re-running the test suite with all the necessary libraries installed. Cool, thanks! * utf8_002, utf8_003, utf8_004, utf8_005: These tests all fail the same way, outputing: utf8_002.hs:2:0: lexical error at end of

RE: compiler change

2006-09-25 Thread Simon Peyton-Jones
| Last question, is using fst/snd really a problem as I suspected by | using the constant twice? (I actually didn't explicitly inline the | constant by two calls of unsafePerfromIO.) Using a constant twice should not duplicate the work of computing it, if that's what you mean S

RE: [Haskell] Deferred instance declarations (serialization ofexistential boxes)

2006-09-25 Thread Simon Peyton-Jones
[redirecting to GHC users, since it's a GHC-specific question] Misha | I asked this question on haskell-cafe once, but my post didn't get any | responses, so I try once again here explaining a bit more where my | problem comes from. I was at ICFP. | Suppose I have a monomorphic datatype,

Re: instance overlap in 6.6 candidate

2006-09-25 Thread Christian Maeder
Simon Peyton-Jones schrieb: | instance Show [Equation] | where | showsPrec _ eqs = certain program which prints a list of equation | in a `nicer' way than by the default list [...] Perhaps. That's what I'd like feedback about. What do others think? Overlapping

Re: Help with unregisterised build

2006-09-25 Thread Ian Lynagh
On Wed, Sep 13, 2006 at 09:43:03PM +1000, Jeremy Wazny wrote: I've attempted to build an installation of GHC which uses unregisterised libraries, but have not had much success. I am new to GHC's build system and would be grateful for some advice. I'm trying to build the 6.4.2 source

Re: threadDelay not ending

2006-09-25 Thread Ian Lynagh
Hi Rich, On Mon, Sep 18, 2006 at 09:23:52AM -0500, Rich Fought wrote: I've got some unit test code that forks off test processes using the 'system' function and then delays using 'threadDelay' to synchronize with the test process. This has worked fine until I upgraded to 6.4.2, now some

Re: Year 2038 problem in GHC 6.4.2 runtime

2006-09-25 Thread Ian Lynagh
On Fri, Sep 22, 2006 at 04:16:44PM +0200, Cyril Schmidt wrote: As far as I can see, the current (6.4.2) GHC runtime suffers the year 2038 problem; that is, the System.Time module does not support dates from 2038 onwards (the code below reproduces the problem). We inherit the problem from C's

Re: internal error: asyncRead#, ghci and fps (windows) (trac 806)

2006-09-25 Thread Ian Lynagh
On Tue, Sep 19, 2006 at 09:20:45PM +0200, Rene de Visser wrote: Is there anyway to turn off that ghci runs in threaded mode on windows? Only by recompiling, I'm afraid (for 6.4.2 comment out the line SRC_HC_OPTS += -threaded in ghc/compiler/Makefile; for 6.5 you need to also do so in

RE: TArray

2006-09-25 Thread Simon Peyton-Jones
It wasn't in the list of exposed modules for the STM package. Thanks for spotting this. [Ian: pls push patch to the 6.6 branch] Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] | On Behalf Of Josef Svenningsson | Sent: 20 September 2006 11:19 | To: Bulat

Re: more extra-libs for ghc 6.6

2006-09-25 Thread Ian Lynagh
On Tue, Sep 19, 2006 at 08:45:30PM +0400, Bulat Ziganshin wrote: Hello glasgow-haskell-users, how about adding to the list of extra libs the following very useful ones: I think we're too late in the release process to be adding libraries. Also, I think we would like to move towards

Re: Year 2038 problem in GHC 6.4.2 runtime

2006-09-25 Thread Cyril Schmidt
Bulat, I am afraid I would need the new Time library a little earlier than 2038, because I am working on financial software where it is not uncommon to have contracts over 30 years long. Is the new Time library available for download? Regards, Cyril ___ Bulat Ziganshin wrote: there is new

Re: more fixups for GHC docs

2006-09-25 Thread Ian Lynagh
Hi Bulat, Thanks for the suggestions! On Tue, Sep 19, 2006 at 05:52:53PM +0400, Bulat Ziganshin wrote: in GHC library paragraph - add a link to the API documentation. btw, my download (http://www.haskell.org/ghc/dist/current/dist/ghc-6.5.20060901-i386-unknown-mingw32.tar.gz) don't

Re: [Haskell] Repeated evaluation of a constant value.

2006-09-25 Thread Lemmih
On 9/25/06, Paul Johnson [EMAIL PROTECTED] wrote: I recently wanted to pass a lookup table around a program. Rather than having something explicitly typed as Map.Map I wrote a function that assembled a Map and then used Map.lookup to return a function, like this: module Main where import

Re: [Haskell] Repeated evaluation of a constant value.

2006-09-25 Thread Sven Moritz Hallberg
Lemmih [EMAIL PROTECTED], 2006-09-25 21.20 +0200: table :: [(String, Integer)] - String - Maybe Integer table ls str = Map.lookup str fm where fm = trace Trace: making the map $ Map.fromList ls to: table :: [(String, Integer)] - String - Maybe Integer table ls = \str -

[Haskell] ANN: HAppS version 0.8.2

2006-09-25 Thread Einar Karttunen
We are pleased to announce HAppS -- Haskell Application Server version 0.8.2. HAppS is a Haskell web application server for building industrial strength Internet applications safely, quickly, and easily. With HAppS you focus entirely on application functionality implemented in your favorite

Constant files/Re: Here-docs in Haskell source

2006-09-25 Thread Jon Fairbairn
On 2006-09-24 at 01:59BST Neil Mitchell wrote: As a side note, perhaps if you're shoving massive amounts of text into a Haskell source file you want to either move to something more structured (like haskell source extensions), IIRC the original problem was MySQL statements, which really call

Re: [Haskell-cafe] Writing forum software in Haskell

2006-09-25 Thread Antti-Juhani Kaijanaho
David House wrote: * What would be a compulsory feature list? Ability to subscribe to forums by email and to post/followup by email. Alternatively, or in addition, a two-way NNTP gateway. (If you want us forum-allergic to participate in the discussions there, that is.)

RE: [Haskell-cafe] System threads?

2006-09-25 Thread Simon Peyton-Jones
| I'm working on a project for which the solution is highly | parallelizable. I've been writing it so far for GHC as a single-threaded | app. I'd like to be able to split the job into multiple pieces, and | spawn different system threads for each piece, so they will run on | separate CPUs. Either

RE: [Haskell-cafe] Haskell DLL crashes Excel

2006-09-25 Thread Simon Peyton-Jones
Andreas, Nikunj, and others I don't have any experience of using GHC to build XLLs, or getting VBA to call Haskell via a DLL. However, this is something we'd like to be easy and reliable using GHC. If any of you are experts on the VBA/DLL side of the question, and can figure out what we should

[Haskell-cafe] Re: [Haskell] BitSyntax for Haskell

2006-09-25 Thread Einar Karttunen
On 23.09 15:00, Adam Langley wrote: Erlang's bit syntax[1] is a great for building and breaking up binary structures. I've knocked up something similar (although a little clumsy) for Haskell: http://www.imperialviolet.org/binary/bitsyntax/

Re: [Haskell-cafe] Haskell DLL crashes Excel

2006-09-25 Thread Lennart Augustsson
I don't think GHC is to blame in this case. If you follow all the API (ABI) guidelines for building XLLs things work fine. But there's a lot of things to get right. -- Lennart On Sep 25, 2006, at 05:16 , Simon Peyton-Jones wrote: Andreas, Nikunj, and others I don't have any

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Neil Mitchell
Hi, 3GLs: programming based on algorithms (C, Java, ...) There are algorithms in Haskell 4GSs: domain-specific languages (SQL,...) There are plenty of domain specific languages in Haskell, I'd call Parsec one of them 5GLs: automatic problem solving (Mathematica, Prolog,...) I wouldn't

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Henning Thielemann
On Mon, 25 Sep 2006, Ch. A. Herrmann wrote: Dear Haskellers, do you think that Haskell is a 3GL (third generation language) or a 5GL or that the hierarchy of programming language generations is useless? I see a problem if the potential of a language is evaluated according to the

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Ch. A. Herrmann
Hi, and/or visual programming (Visual Basic,...) I can only assume you are a) joking a bit, yes , or b) not a visual basic user. also true While Visual Basic is a much insulted language, I have a soft spot for it. However, its not a Visual programming language - its a

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Ch. A. Herrmann
Hi, Henning Thielemann wrote: assembly language (Assembler ist deutsch :-) for mysterious reasons it entered the English world. 3GLs: programming based on algorithms (C, Java, ...) 4GSs: domain-specific languages (SQL,...) 5GLs: automatic problem solving (Mathematica, Prolog,...)

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Alex Queiroz
Hallo, On 9/25/06, Ch. A. Herrmann [EMAIL PROTECTED] wrote: Hi, Henning Thielemann wrote: assembly language (Assembler ist deutsch :-) for mysterious reasons it entered the English world. 'Assembly' is a language. 'Assembler' is a program. -- -alex http://www.ventonegro.org/

[Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-25 Thread Max Vasin
Ch == Ch A Herrmann [EMAIL PROTECTED] writes: Ch Hi, Hello, I'd say very strong, lots of times a where is used thats making use of laziness. Ch I don't agree: where is often only used to program in a top-down Ch style I would say in a more declarative style, the where is closer to thinking

Re: [Haskell-cafe] Re: [Haskell] MR details (was: Implicit type of numeric constants)

2006-09-25 Thread Christian Sievers
Bernie Pope answered: 1. Why do the rules of the monomorphism restriction explicitly mention *simple* pattern bindings? Where is the difference, especially as there is a translation to simple pattern bindings? Why should p | a==b = 2 | otherwise = 3 be

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Jerzy Karczmarczuk
Alex Queiroz wrote: On 9/25/06, Ch. A. Herrmann [EMAIL PROTECTED] wrote: Henning Thielemann wrote: assembly language (Assembler ist deutsch :-) for mysterious reasons it entered the English world. 'Assembly' is a language. 'Assembler' is a program. All this is absolutely

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Bulat Ziganshin
Hello Ch., Monday, September 25, 2006, 5:14:15 PM, you wrote: do you think that Haskell is a 3GL (third generation language) or a 5GL or it's a BottomthGL language :) -- Best regards, Bulatmailto:[EMAIL PROTECTED] ___

Re: [Haskell-cafe] Writing forum software in Haskell

2006-09-25 Thread Brian Smith
On 9/24/06, David House [EMAIL PROTECTED] wrote: Hi all.The recent thread on email vs. forums inspired a bit of interest toget some forum software on haskell.org. Were we to go ahead with this,I think it'd be great to have this software written in Haskell itself. If you were to write all-new

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Bill Wood
On Mon, 2006-09-25 at 16:50 +0200, Jerzy Karczmarczuk wrote: . . . (For the CDC mainframes the assembly language was called Compass [Comprehensive Assembler]. It was a 7648764GL. You could program in it almost like in Lisp thanks to some very exquisite macros, and add another set of macros

[Haskell-cafe] job writing security software in Haskell

2006-09-25 Thread Andrew Pimlott
Planning Systems, Inc. has a job opportunity for Haskell programmers. My synopsis is below, and the official description is at http://www.plansys.com/careers/job_details.cfm?JobID=28 Write Haskell code for a US government contractor. Projects include a high-assurance authorization system build

Re: [Haskell-cafe] Writing forum software in Haskell

2006-09-25 Thread Jason Dagit
On 9/25/06, Brian Smith [EMAIL PROTECTED] wrote: On 9/24/06, David House [EMAIL PROTECTED] wrote: Hi all. The recent thread on email vs. forums inspired a bit of interest to get some forum software on haskell.org. Were we to go ahead with this, I think it'd be great to have this software

[Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-25 Thread Max Vasin
Ch == Ch A Herrmann [EMAIL PROTECTED] writes: it's a BottomthGL language :) Ch That's a religious statement. I was looking for some strong Ch arguments for the nonbelievers that Haskell is a 5GL. But what about nonbelievers in language classification by generation? As already mentioned you

Re: [Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-25 Thread Christoph Herrmann
Max Vasin wrote: Ch == Ch A Herrmann [EMAIL PROTECTED] writes: it's a BottomthGL language :) Ch That's a religious statement. I was looking for some strong Ch arguments for the nonbelievers that Haskell is a 5GL. But what about nonbelievers in language classification

Re: [Haskell-cafe] Writing forum software in Haskell

2006-09-25 Thread Joachim Breitner
Hi, Am Sonntag, den 24.09.2006, 13:02 +0100 schrieb David House: * What would be a compulsory feature list? Stating the obvious: Haskell Syntax Highlighting (I didn't see it mentioned before, but that might be because of malaria) Greetings, Joachim -- Joachim nomeata Breitner mail: [EMAIL

Re: [Haskell-cafe] Re: Is Haskell a 5GL?

2006-09-25 Thread Bill Wood
On Mon, 2006-09-25 at 22:22 +0200, Christoph Herrmann wrote: . . . What Prolog really provides concerning automatic problem solving is little: equation solving in term algebra; you can simulate that in Haskell without much effort. On the other hand, I saw Haskell classified as a 3GL. The

[Haskell-cafe] Re: Haskell DLL crashes Excel

2006-09-25 Thread Cyril Schmidt
Nikunj, The symptoms that you describe hint at some incorrect pointer handling. I believe the culprit is that pesky BSTR. I will try to dig up the code that I wrote a while ago to pass a BSTR to Haskell. Meanwhile, another hint. The GHC FAQ 1.4.1 says: For utterly horrible reasons, programs