RE: replacing the Prelude (again)

2002-07-15 Thread Simon Peyton-Jones
I'm fond of the idea proposed by Marcin 'Qrczak' Kowalczyk: | May I propose an alternative way of specifying an alternative Prelude? | Instead of having a command line switch, let's say that 3 always means | Prelude.fromInteger 3 - for any *module Prelude* which is in scope! That's a perfe

RE: replacing the Prelude (again)

2002-07-15 Thread Ashley Yakeley
At 2002-07-15 01:05, Simon Peyton-Jones wrote: >I quite like the fact that you would then have to say > > import MyPrelude as Prelude > >thereby stressing that you are importing the Prelude stuff. Doesn't this assume your Prelude stuff is all in one module? Or can you import several modu

Re: replacing the Prelude (again)

2002-07-15 Thread Malcolm Wallace
> | anymore. What I would like is that the defualting rules refer > | to the classes in my version of the Prelude, > | not the Standard Prelude. > > You can always get that (with the -fno-implicit-prelude thing) by adding > default [Int, Double] > > or whatever to your source module, jus

RE: replacing the Prelude (again)

2002-07-15 Thread Bernard James POPE
Hi All, Thanks to everyone for their comments. I can see that this is quite a difficult design problem, and it is unlikely that one solution will please everyone, which makes me think that the current solution will probably stand. Simon Peyton-Jones writes: > Bernie writes: > | anymore. What

RE: make -j2 fails on SMP with ghc-5.04

2002-07-15 Thread Simon Marlow
> I have a dual Athlon box, make -j2 fails, but make works. > Is that normal? I did some tweaking to the build system to help -jN builds, but I haven't tested a complete build this way. Whereabouts does it fall over for you? Cheers, Simon ___

RE: Unregisterised build

2002-07-15 Thread Simon Marlow
> I'm trying to do an unregistered build of ghc, using the cross-port > script. However, compilation aborts at the following point: > > haskell/b1/libraries/base > ../../ghc/compiler/ghc-inplace -ldl > -fglasgow-exts -cpp -Iinclude -funbox-strict-fields > -package-name base -O > -H24m -keep-hc-f

RE: package name mismatch

2002-07-15 Thread Simon Marlow
> Building htk, I've got an error: > > TestGetPut.hs:6: > Module `GetPut' is located in package `Main' > but its interface file claims it is part of package > `uni-events-test' > > It happened (as far as I got) when ghc saw in current path > the *.hi file built for installation. Ther

Re: replacing the Prelude (again)

2002-07-15 Thread Bernard James POPE
Hi again, Malcolm writes: > We came across the same problem in the Hat tracer (which is also a > source-to-source transformation, and can also be used for debugging). > > The problem is that the transformation introduces new classes, so > Prelude.Ord -> HatPrelude.Ord > Prelude.Eq -> Ha

Re: replacing the Prelude (again)

2002-07-15 Thread Malcolm Wallace
> > The defaulting mechanism *only* applies to types constrained by > > the original builtin Prelude.Num, not to the transformed class > > HatPrelude.Num. > > I did wonder how Hat tackled this. > Out of curiosity what is the solution that Hat uses? Hat doesn't have a solution. When the lack of

Re: replacing the Prelude (again)

2002-07-15 Thread Olaf Chitil
Malcolm Wallace wrote: > > For what reasons do you require the original prelude? > > Exactly the same reasons. We want to do as little desugaring as > necessary in the transformation, so inevitably we need at least a > small part of the Prelude in scope. This is a bit misleading. We do desugar

Re: Weird profiling behaviour

2002-07-15 Thread Eray Ozkural
On Thursday 27 June 2002 12:10, Ketil Z. Malde wrote: > *lights go on* > > Of course! While I have about 90K values to sort, it's only a range > from 0 to about 5-600, and a less than even distribution at that. (I > must be a lot denser than I thought. Colin, if you ever happen to pass > by, do

RE: package name mismatch

2002-07-15 Thread George Russell
Simon Marlow quoted Max Kirillov [snip] > > Building htk, I've got an error: > >=20 > > TestGetPut.hs:6: > > Module `GetPut' is located in package `Main' > > but its interface file claims it is part of package > > `uni-events-test' > >=20 > > It happened (as far as I got) when ghc saw

profiling objects (segmentation fault)

2002-07-15 Thread MR K P SCHUPKE
I know this has been discussed before, but I can't remember the conclusion and nothing seems to have been done, so I am going to bring it up again. Is there any way the compiler can mark object files with whether they are profiling or not, so that you cannot link a profiled object with a non-pr

Re: ANNOUNCE: GHC version 5.04 released

2002-07-15 Thread Michael Weber
* Ashley Yakeley <[EMAIL PROTECTED]> [2002-07-11T17:06-0700]: > At 2002-07-11 11:22, Eray Ozkural wrote: > > >> A Windows installer for 5.04 is now available via the GHC downloads > >> page: http://haskell.org/ghc/download_ghc_504.html > > > >/me pings debian people. we can't lag behind windows,

Re: replacing the Prelude (again)

2002-07-15 Thread Bernard James POPE
Malcolm writes: > Bernie writes: > > I did wonder how Hat tackled this. > > Out of curiosity what is the solution that Hat uses? > > Hat doesn't have a solution. When the lack of correct defaulting > causes Hat to generate type-incorrect code, the underlying compiler > will complain vociferousl