template-haskell cannot be upgraded (broken data-accessor-template) #667

Closed
bos opened this Issue May 24, 2012 · 3 comments

Projects

None yet

2 participants

@bos
Contributor
bos commented May 24, 2012

(Imported from Trac #675, reported by guest on 2010-05-01)

data-accessor-template-0.2.1.3 has flags in the cabal file on template-haskell versions, which makes it broken for cabal-install on ghc-6.12:

cabal-install tries to install template-haskell-2.3, which fails (and it can't be expected to succeed because TH is integrated into ghc due to quotes)

You can work around the build failure with:

  cabal install data-accessor-template --constraint='template-haskell >= 2.4'
cabal-install ought to know that template-haskell isn't something it should install (as it does with base).
@bos
Contributor
bos commented May 24, 2012

(Imported comment by @kosmikus on 2010-05-01)

I'm reluctant to hard-code many additional packages that can't be upgraded in cabal. Leaving this open for now because it raises an interesting point, though.

@bos
Contributor
bos commented May 24, 2012

(Imported comment by @benmachine on 2012-03-05)

How about we un-hard-code them, and add a config setting for 'immutable' packages, default base?

@hvr hvr added a commit to hvr/cabal that referenced this issue Apr 9, 2014
@hvr hvr Add `integer-{gmp,simple}` and `template-haskell` to list of non-upgr…
…adables

This is related to #667 and similiar issues
65e9b88
@23Skidoo
Member
23Skidoo commented Apr 9, 2014

Fixed by #1761.

@23Skidoo 23Skidoo closed this Apr 9, 2014
@hvr hvr added a commit to hvr/cabal that referenced this issue Jun 9, 2014
@hvr hvr Allow template-haskell to be upgradable again
This partly reverts 65e9b88
which marked `template-haskell` non-upgradable. However, since are now
able to fix-up wrong .cabal meta-data on Hackage, previous `template-haskell`
releases have been augmented by proper version bounds so that it's now
safe again to let the Cabal solver handle reinstalling `template-haskell`

See also #1811, #667, #1761, and #1444
65ae95c
@hvr hvr added a commit that referenced this issue Jun 9, 2014
@hvr hvr Allow template-haskell to be upgradable again
This partly reverts 65e9b88
which marked `template-haskell` non-upgradable. However, since are now
able to fix-up wrong .cabal meta-data on Hackage, previous `template-haskell`
releases have been augmented by proper version bounds so that it's now
safe again to let the Cabal solver handle reinstalling `template-haskell`

See also #1811, #667, #1761, and #1444

(cherry picked from commit 65ae95c / #1934)
ffd67e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment