RFE: Make template-haskell cabal package require a specific version of GHC
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 18.104.22.168 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.