[GHC] #14571: RFE: Make template-haskell cabal package require a specific version of GHC

#14571: RFE: Make template-haskell cabal package require a specific version of GHC ----------------------------------------+--------------------------- Reporter: atodorov | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.2 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: Other Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------- Following a conversation on another bug tracker: https://github.com/bos/math-functions/issues/52 it looks like template-haskell is very dependent on the version of GHC being used (although the test matrix is all green at present). In the above case we're trying to use template-haskell 2.12.0.0 with GHC 8.0.2 to build another package and that fails. One of the problems is that on Fedora template-haskell is shipped separately from GHC while on Debian or with source installations it comes bundled with GHC. Is it possible to specify a requirement on the GHC version inside .cabal files? This will make it easier to track down why something isn't able to compile. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14571 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14571: RFE: Make template-haskell cabal package require a specific version of GHC -------------------------------------+------------------------------------- Reporter: atodorov | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by refold): Indeed, upgrading `template-haskell` is almost always a bad idea. That's why `cabal-install`'s solver [considers `template-haskell` to be a non- upgradeable package]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14571#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14571: RFE: Make template-haskell cabal package require a specific version of GHC -------------------------------------+------------------------------------- Reporter: atodorov | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hvr): Here's some more backstory: - https://github.com/haskell/cabal/pull/4185 - https://github.com/haskell/cabal/issues/4098 Long story short, if use a recent enough `cabal-install` this shouldn't be a problem. More generally, one long-standing idea was to have either `ghc` or `ghc- pkg` expose the information of whether a package is reinstallable dynamically to cabal, but in the past that would have been merely an aesthetical improvement, as Cabal has to encode special knowledge about GHC anyway. Also, the small set of non-reinstallable packages has been very stable over the years; so there was little incentive to do anything about this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14571#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC