[commit: packages/template-haskell] master: Refactor & modernize `.cabal` to `cabal-version>=1.10` (f4c177b)
git at git.haskell.org
git at git.haskell.org
Thu Oct 24 08:50:24 UTC 2013
Repository : ssh://git@git.haskell.org/template-haskell
On branch : master
Link : http://git.haskell.org/packages/template-haskell.git/commitdiff/f4c177bb4d3b75ff907d4fe5e13cccd3165052dd
>---------------------------------------------------------------
commit f4c177bb4d3b75ff907d4fe5e13cccd3165052dd
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Thu Oct 24 10:01:08 2013 +0200
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 at gnu.org>
>---------------------------------------------------------------
f4c177bb4d3b75ff907d4fe5e13cccd3165052dd
template-haskell.cabal | 70 ++++++++++++++++++++++++++++++++----------------
1 file changed, 47 insertions(+), 23 deletions(-)
diff --git a/template-haskell.cabal b/template-haskell.cabal
index 7885a78..ada86b8 100644
--- a/template-haskell.cabal
+++ b/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 at haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=Template%20Haskell
+license: BSD3
+license-file: LICENSE
+category: Template Haskell
+maintainer: libraries at 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
More information about the ghc-commits
mailing list