summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-10-24 10:01:08 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-10-24 10:09:05 +0200
commitbad2d6a2f786e9a3f209eda0e51a82f48b99c362 (patch)
tree26e839dd3cef24993067ccf6424e5746e5cc37ee
parent2630f4c017cb0c95266e641dbf6ca8b9ace03c1b (diff)
downloadhaskell-bad2d6a2f786e9a3f209eda0e51a82f48b99c362.tar.gz
Refactor & modernize `.cabal` to `cabal-version>=1.10`
Updates the `description` include a link to the Haskell wiki and list potantially used extensions in `other-extensions`. This also sets proper `build-depends` which effectively tie `template-haskell` to GHC 7.7/7.8 and thus should help keep `cabal-install` from attempting to compile the `template-haskell` package with older/newer GHCs. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
-rw-r--r--libraries/template-haskell/template-haskell.cabal70
1 files changed, 47 insertions, 23 deletions
diff --git a/libraries/template-haskell/template-haskell.cabal b/libraries/template-haskell/template-haskell.cabal
index 7885a785e9..ada86b87e1 100644
--- a/libraries/template-haskell/template-haskell.cabal
+++ b/libraries/template-haskell/template-haskell.cabal
@@ -1,32 +1,56 @@
-name: template-haskell
-version: 2.9.0.0
+name: template-haskell
+version: 2.9.0.0
-- GHC 7.6.1 released with 2.8.0.0
-license: BSD3
-license-file: LICENSE
-maintainer: libraries@haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=Template%20Haskell
+license: BSD3
+license-file: LICENSE
+category: Template Haskell
+maintainer: libraries@haskell.org
+bug-reports: http://ghc.haskell.org/trac/ghc/newticket?component=Template%20Haskell
+synopsis: Support library for Template Haskell
+build-type: Simple
+Cabal-Version: >= 1.10
description:
- Facilities for manipulating Haskell source code using Template Haskell.
-build-type: Simple
-Cabal-Version: >= 1.6
+ This package provides modules containing facilities for manipulating
+ Haskell source code using Template Haskell.
+ .
+ See <http://www.haskell.org/haskellwiki/Template_Haskell> for more
+ information.
+
+source-repository head
+ type: git
+ location: http://git.haskell.org/packages/template-haskell.git
+
+source-repository this
+ type: git
+ location: http://git.haskell.org/packages/template-haskell.git
+ tag: template-haskell-2.9.0.0-release
Library
- build-depends: base >= 4.5 && < 5,
- pretty, containers
+ default-language: Haskell2010
+ other-extensions:
+ DeriveDataTypeable
+ FlexibleInstances
+ MagicHash
+ PolymorphicComponents
+ RankNTypes
+ RoleAnnotations
+ ScopedTypeVariables
+ TemplateHaskell
+ UnboxedTuples
+
exposed-modules:
- Language.Haskell.TH.Syntax
- Language.Haskell.TH.PprLib
- Language.Haskell.TH.Ppr
+ Language.Haskell.TH
Language.Haskell.TH.Lib
+ Language.Haskell.TH.Ppr
+ Language.Haskell.TH.PprLib
Language.Haskell.TH.Quote
- Language.Haskell.TH
- extensions: MagicHash, PatternGuards, PolymorphicComponents,
- DeriveDataTypeable
- -- We need to set the package name to template-haskell (without a
- -- version number) as it's magic.
- ghc-options: -package-name template-haskell
+ Language.Haskell.TH.Syntax
-source-repository head
- type: git
- location: http://git.haskell.org/packages/template-haskell.git
+ build-depends:
+ base == 4.7.*,
+ containers == 0.5.*,
+ pretty == 1.1.*
+ -- We need to set the package name to template-haskell (without a
+ -- version number) as it's magic.
+ ghc-options: -Wall -package-name template-haskell