[Haskell-cafe] cannot install base-4.3.1.0 package

2011-05-15 Thread Immanuel Normann
Hi,
how can I install the base-4.3.1.0 package. I tried first

 cabal install base

that gives me this error:

Resolving dependencies...
cabal: Distribution/Client/Dependency/TopDown.hs:169:37-73:
Non-exhaustive patterns in lambda

I googled for this error and found nothing but the simple statement in
the track system http://hackage.haskell.org/trac/hackage/ticket/605:

cabal install base is not expected to work, however the error message
should be better, see #597. 

(but the link to #547 doesn't solve the problem either)

So I downloaded base-4.3.1.0 package from hackage and run:

 runhaskell Setup configure

which gives this error:

Setup.hs:1:0:
attempting to use module `Prelude' (./Prelude.hs) which is not loaded

Then I noticed that there is configure script in the base-4.3.1.0 dir,
so executed this which yields this error message:

config.status: error: cannot find input file: `base.buildinfo.in'

Why is it so complicated to install the base package?

Thanks for any help!

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] cannot install base-4.3.1.0 package

2011-05-15 Thread Malcolm Wallace
On 15 May 2011, at 15:35, Immanuel Normann wrote:

 Why is it so complicated to install the base package?

You cannot upgrade the base package that comes with ghc.
It's a bad design, but there we go.

Regards,
Malcolm



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] cannot install base-4.3.1.0 package

2011-05-15 Thread Daniel Fischer
On Sunday 15 May 2011 16:35:35, Immanuel Normann wrote:
 Hi,
 how can I install the base-4.3.1.0 package. I tried first

No. That can't work (at least with GHC). The base package is one of the 
packages that the compiler was built with, it is impossible to replace it 
and have a working compiler (again, GHC, for other compilers it might be 
possible, but I don't think it currently is for any).

If you want a compiler with bae-4.3.1.0, install a compiler that was built 
with it (ghc-7.0.*).

Other packages you cannot replace are process, directory, array, 
containers, integer-(gmp|simple), ghc, ghc-prim, ..., basically everything 
that comes with a vanilla ghc install (except Cabal, you can install a 
different version of Cabal without breaking things, afaik).

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe