ANNOUNCE: nhc98 version 1.02

2001-02-14 Thread malcolm-nhc
We are pleased to announce the new release 1.02 of nhc98, a compiler for Haskell'98, written in Haskell'98. http://www.cs.york.ac.uk/fp/nhc98/ It is available as a source package (which can be built via ghc, hbc, an existing nhc98 installation, or simply with a C compiler if you don't

Re: The Do-Let-Braces problem

2001-02-14 Thread Sebastien Carlier
Mark Utting wrote: Summary: Haskell layout has problems within 'do' (see below). Can we change Haskell to improve it? I don't think the language has to be changed. It seems to me that the problems is more with the idea of editing the source code as plain text. Ideally, I would like

Re: The Do-Let-Braces problem

2001-02-14 Thread Marcin 'Qrczak' Kowalczyk
Thu, 15 Feb 2001 15:20:19 +1300, Mark Utting [EMAIL PROTECTED] pisze: fb::IO () fb = do { putStr "Enter Data: "; line - getLine; let line2 = line; putStr line2; } I have a different proposal. Let's drop the 'let' keyword in value bindings in a

RE: Hello World program core dumps with GHC 4.08.1 on HPUX 10.2 0

2001-02-14 Thread BENNETT,ANDY (HP-Unitedkingdom,ex1)
Hi Simon, Having tried to build 'happy' with the version of GHC I have and having discovered the GHC system libraries also depend on JMP_, I'm inclined to think the only "safe" solution is to keep the "if". I can think of no solution to this; other than enforcing a linking method since without a

Re: Missing *.h files

2001-02-14 Thread Reuben Thomas
I just installed ghc-4.08.2 on a WinNT system. When I compile Hello World with -O or -prof -auto-all ghc misses a lot of *.h files (see attached log files). Note to those who didn't see the attachments: all the missing includes are from the standard C library. What can I do? Set your

RE: Segmentation fault in program

2001-02-14 Thread Simon Marlow
The problem is indeed that the wrong __init_Foo is being passed to startupHaskell. The Haskell part of your program consists of two modules, Convert and ConvertProxy (the latter is generated by H/Direct). ConvertProxy imports Convert, and is therefore the "topmost" module in the program. To fix

Re: Segmentation fault in program

2001-02-14 Thread Sigbjorn Finne
The problem is indeed that the wrong __init_Foo is being passed to startupHaskell. No, that's not it. I've been able to repro this with __init_ConvertProxy too - did you test it? (This is with 4.08.1 on a Win2k box.) --sigbjorn ___

RE: Hello World program core dumps with GHC 4.08.1 on HPUX 10.2 0

2001-02-14 Thread Simon Marlow
Hi Andy, I don't have access to the HP box I built the binaries on at the moment, so unfortunately I can't investigate right now. Your analysis looks sound, but like you I'm mystified why we're only now discovering the problem. Here's one clue: we always pass -static to the C compiler (but not

RE: Segmentation fault in program

2001-02-14 Thread Simon Marlow
The problem is indeed that the wrong __init_Foo is being passed to startupHaskell. No, that's not it. I've been able to repro this with __init_ConvertProxy too - did you test it? (This is with 4.08.1 on a Win2k box.) Yes, I did, and was able to demonstrate a crash which went away when

Re: questions about the installation instructions for WinNT andghc-4.08x

2001-02-14 Thread Reuben Thomas
In the installation instruction is under 2.2.2.1 paragraph "Here's how to install Cygwin" written: After installation, start up a Cygwin shell and issue the following command: mount -f c: / assuming you installed Cygwin at C:\cygwin; otherwise change the drive and

Re: ANN: C-Haskell 0.8.1

2001-02-14 Thread Marcin 'Qrczak' Kowalczyk
12 Feb 2001 14:48:09 GMT, Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] pisze: It could be my fault: I ran ./configure before updating it with autoconf, and perhaps did not clean afterwards. Ok, it was my fault. But the error in CInfo is still there. And C2HS does not export most of cast*Ptr

Confused about enabling parallel ghc

2001-02-14 Thread Albert Lai
I installed ghc 4.08.2 binaries for sparc solaris (and those for intel linux, too), then tried compiling a sample program (the fibonacci one in the user guide) with ghc -parallel. The compiler complained: Could not find interface file for `Prelude' in the directories ./*.hi

Re: Typing units correctly

2001-02-14 Thread Dylan Thurston
On Wed, Feb 14, 2001 at 08:10:39AM -0800, Andrew Kennedy wrote: To be frank, the poster that you cite doesn't know what he's talking about. He makes two elementary mistakes: Quite right, I didn't know what I was talking about. I still don't. But I do hope to learn. (a) attempting to encode

Re: Revised numerical prelude, version 0.02

2001-02-14 Thread Marcin 'Qrczak' Kowalczyk
Tue, 13 Feb 2001 18:32:21 -0500, Dylan Thurston [EMAIL PROTECTED] pisze: Here's a revision of the numerical prelude. I like it! class (Real a, Floating a) = RealFrac a where -- lifted directly from Haskell 98 Prelude properFraction :: (Integral b) = a - (b,a) truncate, round

Re: Revised numerical prelude, version 0.02

2001-02-14 Thread Dylan Thurston
On Wed, Feb 14, 2001 at 09:53:16PM +, Marcin 'Qrczak' Kowalczyk wrote: Tue, 13 Feb 2001 18:32:21 -0500, Dylan Thurston [EMAIL PROTECTED] pisze: Here's a revision of the numerical prelude. I like it! I'd like to start using something like this in my programs. What are the chances that

RE: Primitive types and Prelude shenanigans

2001-02-14 Thread Simon Peyton-Jones
| On Mon, Feb 12, 2001 at 02:38:25PM -0800, William Lee Irwin III wrote: | I had in mind looking within the compiler, actually. Where in the | compiler? It's a big program, it might take me a while to do an | uninformed search. I've peeked around a little bit and not gotten | anywhere. | |

Re: Scalable and Continuous

2001-02-14 Thread Matt Harden
Marcin 'Qrczak' Kowalczyk wrote: I'm afraid of making too many small classes. But it would perhaps be not so bad if one could define superclass' methods in subclasses, so that one can forget about exact structure of classes and treat a bunch of classes as a single class if he wishes. It

Re: Scalable and Continuous

2001-02-14 Thread Marcin 'Qrczak' Kowalczyk
Wed, 14 Feb 2001 23:27:55 -0600, Matt Harden [EMAIL PROTECTED] pisze: I also wonder: should one be allowed to create new superclasses of an existing class without updating the original class's definition? It would not buy anything. You could not make use of the superclass in default