Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal insists on template-haskell-2.6.0.0, breaking hackage builds #978

Closed
LeventErkok opened this issue Jul 17, 2012 · 3 comments
Closed

Comments

@LeventErkok
Copy link

A detailed discussion is in this haskell-cafe thread:

   http://www.haskell.org/pipermail/haskell-cafe/2012-July/102352.html

I'm not entirely sure if this is a pure cabal issue. In particular the version of ghc currently installed on hackage and/or the setup on hackage is also of suspect. In relation to cabal, Ross says:

  With ghc 7.4.1, cabal-install 0.13.3 and Cabal 1.14.0,

 % cabal install --avoid-reinstalls sbv-2.2

fails to find a plan without reinstalls, and recommends --solver=modular.

 % cabal install --solver=modular --avoid-reinstalls sbv-2.2

 reinstalls template-haskell-2.6.0.0, which breaks the GHC installation.

 I've added the suggested --constraint='template-haskell==2.7.0.0'
option as a workaround, but it seems the --avoid-reinstalls option is
being ignored.
@kosmikus
Copy link
Contributor

I haven't seen anything yet that suggests there's a Cabal or cabal-install problem involved. 0.13.3 isn't an official version. I haven't been able to reproduce that cabal-install --avoid-reinstalls suggests a reinstall.

The only issue I can see here is that cabal-install should refuse installing new versions of template-haskell completely, in the same way it refuses to install ghc-prim or base. However, rather than having a large hardcoded list of built-in packages for GHC, I'd like to have a robust algorithm to detect such packages.

@hvr
Copy link
Member

hvr commented Jun 8, 2014

Fyi, I've updated all template-haskell releases on hackage to include bounds on base. Maybe this helps.

@23Skidoo
Copy link
Member

This looks to have been fixed by updated version bounds on Hackage, so closing. Please reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants