d4dd81e0a539964766148c51d12411badb4a985a
[ghc.git] / libraries / template-haskell / template-haskell.cabal
1 name:           template-haskell
2 version:        2.11.0.0
3 -- NOTE: Don't forget to update ./changelog.md
4 license:        BSD3
5 license-file:   LICENSE
6 category:       Template Haskell
7 maintainer:     libraries@haskell.org
8 bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=Template%20Haskell
9 synopsis:       Support library for Template Haskell
10 build-type:     Simple
11 Cabal-Version:  >= 1.10
12 description:
13     This package provides modules containing facilities for manipulating
14     Haskell source code using Template Haskell.
15     .
16     See <http://www.haskell.org/haskellwiki/Template_Haskell> for more
17     information.
18
19 extra-source-files: changelog.md
20
21 source-repository head
22     type:     git
23     location: http://git.haskell.org/ghc.git
24     subdir:   libraries/template-haskell
25
26 Library
27     default-language: Haskell2010
28     other-extensions:
29         DeriveDataTypeable
30         FlexibleInstances
31         MagicHash
32         PolymorphicComponents
33         RankNTypes
34         ScopedTypeVariables
35         UnboxedTuples
36
37     exposed-modules:
38         Language.Haskell.TH
39         Language.Haskell.TH.Lib
40         Language.Haskell.TH.Ppr
41         Language.Haskell.TH.PprLib
42         Language.Haskell.TH.Quote
43         Language.Haskell.TH.Syntax
44
45     other-modules:
46         Language.Haskell.TH.Lib.Map
47
48     build-depends:
49         base       >= 4.6 && < 4.10,
50         ghc-boot,
51         pretty     == 1.1.*
52
53     -- We need to set the unit ID to template-haskell (without a
54     -- version number) as it's magic.
55     ghc-options: -Wall
56
57     if impl( ghc >= 7.9 )
58         ghc-options:  -this-package-key template-haskell
59     else
60         ghc-options:  -package-name template-haskell