Re: Prelude not in haskell98?

2007-06-05 Thread Isaac Dupree
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan O'Rear wrote: >> Right, the problem is that if Prelude was in haskell98 then it wouldn't >> be possible to have a program that /didn't/ depend on haskell98 (short >> of -fno-implicit-prelude extensions, or having a Prelude in both (which >> woul

Re: Prelude not in haskell98?

2007-06-05 Thread Stefan O'Rear
On Wed, Jun 06, 2007 at 12:39:20AM +0100, Ian Lynagh wrote: > On Tue, Jun 05, 2007 at 11:23:57PM +0100, Neil Mitchell wrote: > > > > >All this seems to indicate that the Prelude is not a part of the > > >"haskell98" package. Is this the case, and if so, is this > > >intentional? It would be nice

Re: Prelude not in haskell98?

2007-06-05 Thread Ian Lynagh
On Tue, Jun 05, 2007 at 11:23:57PM +0100, Neil Mitchell wrote: > > >All this seems to indicate that the Prelude is not a part of the > >"haskell98" package. Is this the case, and if so, is this > >intentional? It would be nice if we could create Cabal packages that > >explicitly indicate that th

Re: Prelude not in haskell98?

2007-06-05 Thread Neil Mitchell
Hi Iavor, All this seems to indicate that the Prelude is not a part of the "haskell98" package. Is this the case, and if so, is this intentional? It would be nice if we could create Cabal packages that explicitly indicate that the library depends only on Haskell 98 libraries. Its true, and i

Re: GHC 6.6.1 on Debian Etch?

2007-06-05 Thread Stefan O'Rear
On Tue, Jun 05, 2007 at 10:13:41PM +0200, Wagner Ferenc wrote: > Hi, > > what's the best way to install GHC 6.6.1 on a Debian Etch system? > Basically: are there installable packages available somewhere, or > should I recompile the Sid packages, or create a stub package from a > binary .tar.gz bun

Prelude not in haskell98?

2007-06-05 Thread Iavor Diatchki
Hello, I am using GHC 6.6 and I am trying to build a library using Cabal. The library is written in Haskell'98 so I made the Cabal file depend only on the package "haskell98". Unfortunately building the library fails with the following error: MyModule.hs:1:0: Failed to load interface for `Pr

GHC 6.6.1 on Debian Etch?

2007-06-05 Thread Wagner Ferenc
Hi, what's the best way to install GHC 6.6.1 on a Debian Etch system? Basically: are there installable packages available somewhere, or should I recompile the Sid packages, or create a stub package from a binary .tar.gz bundle, or some other option I didn't think of? -- Thanks, Feri.

Re: ghc-6.6.1 for FreeBSD/amd64 binary distribution

2007-06-05 Thread Ian Lynagh
Hi Gregory, On Wed, May 30, 2007 at 05:56:31PM -0400, Gregory Wright wrote: > > On May 30, 2007, at 4:05 PM, Simon Marlow wrote: > > >Gregory Wright wrote: > > > >>I have put a binary distribution of ghc-6.6.1 for FreeBSD/amd64 > >>at > >>http://www.haskell.org/ghc/dist/6.6.1/ghc-6.6.1-x86_64-u

RE: too much let-floating

2007-06-05 Thread Simon Peyton-Jones
| No, I don't want to duplicate. But in my example the let var was only | used once, so there was no sharing problem. Not so in general -- floating outside a lambda that is called many times can dramatically increase sharing. You're right that all you want is to *forgo* an optimisation; but I wa

RE: specialization using RULES

2007-06-05 Thread Simon Peyton-Jones
| The rules do not fire. They only seem to fire if the specialized | function is called directly, such as | | > doSomethingWith ( zipWith (-) (u :: Vec Three Double) v ) That's probably because to fire distance must be inlined but sumV and mapV must not which is obviously a bit de