Fwd: compiling haskell-src-exts in 6.10

---------- Forwarded message ----------
From: Hugo Pacheco

On Tue, 2008-11-11 at 12:20 +0000, Hugo Pacheco wrote:
---------- Forwarded message ---------- From: Hugo Pacheco
Date: Tue, Nov 11, 2008 at 12:20 PM Subject: compiling haskell-src-exts in 6.10 To: Haskell Cafe When installing package haskell-src-exts via cabal install, I get the error
What happened about the program 'happy'? Did it magically start working?
Language/Haskell/Exts/Syntax.hs:102:7: Could not find module `Data.Data': it is a member of package base, which is hidden
However, when manually installing
runhaskell Setup.hs configure/build/install
It works fine Somehow package base is not available in cabal.. don't know why.
Assuming you're using the latest haskell-src-exts-0.3.9 then the issue is that it does not say that it needs base-4 which is the version that exports Data.Data. The cabal-install program will pick base-3 unless the package says it needs base-4 because the vast majority of packages were written with open ended dependencies on base and will not work with base-4. What is confusing is that the configure command is not so smart and it just picks the latest version of everything (ie base-4). So that probably tricked the package author into making it work with base-4 and in the process breaking it for all older versions. So there are three workarounds, one is to get the author to fix the package. One is to fix it yourself and the other is to use an older version of the package. Duncan

What happened about the program 'happy'? Did it magically start working?
I made a symbolic link in /usr/bin to ~/.cabal/bin/happyLately I found an
option for the cabal install command that may fix the same problem. cabal install haskell-src-exts --with-happy=~/.cabal/bin/happy It may work as well. hugo -- www.di.uminho.pt/~hpacheco

On Tue, 2008-11-11 at 14:39 +0000, Hugo Pacheco wrote:
What happened about the program 'happy'? Did it magically start working?
I made a symbolic link in /usr/bin to ~/.cabal/bin/happy Lately I found an option for the cabal install command that may fix the same problem.
Hmm, I don't understand. That sounds like happy was not on your $PATH, which is also what the error message from cabal indicated. But then it looked like it was on your path since you were able to run $ happy --version. So I conclusions I don't understand what is going on. It seems contradictory. Duncan

That is why I didn't understand the error. It was on my path but cabal
couldn't find it.I just put it into my /usr/bin because all the executables
it found (with the -v option) were there, not anywhere else.
Probably some bug, I don't know
On Tue, Nov 11, 2008 at 2:53 PM, Duncan Coutts
On Tue, 2008-11-11 at 14:39 +0000, Hugo Pacheco wrote:
What happened about the program 'happy'? Did it magically start working?
I made a symbolic link in /usr/bin to ~/.cabal/bin/happy Lately I found an option for the cabal install command that may fix the same problem.
Hmm, I don't understand. That sounds like happy was not on your $PATH, which is also what the error message from cabal indicated. But then it looked like it was on your path since you were able to run $ happy --version.
So I conclusions I don't understand what is going on. It seems contradictory.
Duncan
-- www.di.uminho.pt/~hpacheco
participants (2)
-
Duncan Coutts
-
Hugo Pacheco