RE: Compiling GHC

2001-12-05 Thread Josef Svenningsson
On Mon, 3 Dec 2001, Julian Seward (Intl Vendor) wrote: Wierd. We work with sparc-solaris-2.7 and gcc 2.95.3 and it all works. gcc2_compiled is a bogus symbol inserted by gcc into all its generated assembly, for no apparent reason. Suggestion: Look in rts/Linker.c in fn ocGetNames_ELF.

Re: Compiling GHC

2001-12-05 Thread Marcin 'Qrczak' Kowalczyk
Wed, 5 Dec 2001 21:25:31 +0100 (MET), Josef Svenningsson [EMAIL PROTECTED] pisze: Linker.c:347: `stg_chk_2' redeclared as different kind of symbol Use SymX instead of Sym. -- __( Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK

RE: hiding imports

2001-12-05 Thread Simon Peyton-Jones
I think it's an ill-thought-out exception. The point is this: if a data constructor cannot appear on its own in a hiding list, then you can't hide the constructor without hiding the type. Currently you can say import Maybe hiding( Just ) It would be simpler and more uniform to only

RE: Haskell 98 Revised

2001-12-05 Thread Simon Peyton-Jones
A good point. You are right that the report is not very explicit on this point; and right that omitting the qualifier would be in the spirit of the story for type sigs and instance decls. I'd be interested to know what others think. Simon | -Original Message- | From: Iavor S.

RE: Haskell 98 Revised

2001-12-05 Thread Simon Peyton-Jones
Folks, Concerning the recent change about instance declarations, should this be valid? module M( C(op1) ) where-- NB: op2 not exported class C a where op1 :: a-a op2 :: a-a module N where import M instance C

Re: Haskell 98 Revised

2001-12-05 Thread Karl-Filip Faxen
Hi! For whatever that is worth, my semantics agrees with Simon's point here, ie in the example code module M( C(op1) ) where-- NB: op2 not exported class C a where op1 :: a-a op2 :: a-a module N where import M

Re: How to write a lazy variant ?

2001-12-05 Thread Dmitry Astapov
I hate to followup to myself, but looks like I had to. I really was too tired and lazy version could be obtained by simple use of accumulator: ADR Are you _sure_ that's all it takes? Well, I cannot be 100% sure, but what I observe in ghci is that evaluating 'recs - readRecordFile some_name'