diff options
Diffstat (limited to 'libraries/template-haskell/template-haskell.cabal')
-rw-r--r-- | libraries/template-haskell/template-haskell.cabal | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal index 1c53af392e..bd277d127c 100644 --- a/libraries/template-haskell/template-haskell.cabal +++ b/libraries/template-haskell/template-haskell.cabal @@ -48,9 +48,14 @@ Library Language.Haskell.TH.Lib.Map build-depends: - base == 4.8.*, + base >= 4.7 && < 4.9, pretty == 1.1.* -- We need to set the package key to template-haskell (without a -- version number) as it's magic. - ghc-options: -Wall -this-package-key template-haskell + ghc-options: -Wall + + if impl( ghc >= 7.9 ) + ghc-options: -this-package-key template-haskell + else + ghc-options: -package-name template-haskell |