template-haskell.cabal 1.65 KB
Newer Older
1
name:           template-haskell
Herbert Valerio Riedel's avatar
Herbert Valerio Riedel committed
2
version:        2.10.0.0
3
-- NOTE: Don't forget to update ./changelog.md
4 5 6 7 8 9 10 11
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
12
description:
13 14 15 16 17 18
    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.

19 20
extra-source-files: changelog.md

21 22
source-repository head
    type:     git
23 24
    location: http://git.haskell.org/ghc.git
    subdir:   libraries/template-haskell
25 26

Library
27 28 29 30 31 32 33 34 35 36 37
    default-language: Haskell2010
    other-extensions:
        DeriveDataTypeable
        FlexibleInstances
        MagicHash
        PolymorphicComponents
        RankNTypes
        ScopedTypeVariables
        TemplateHaskell
        UnboxedTuples

38
    exposed-modules:
39
        Language.Haskell.TH
40
        Language.Haskell.TH.Lib
41 42
        Language.Haskell.TH.Ppr
        Language.Haskell.TH.PprLib
43
        Language.Haskell.TH.Quote
44
        Language.Haskell.TH.Syntax
45

46 47 48
    other-modules:
        Language.Haskell.TH.Lib.Map

49
    build-depends:
50
        base       >= 4.6 && < 4.9,
51
        pretty     == 1.1.*
52

53
    -- We need to set the package key to template-haskell (without a
54
    -- version number) as it's magic.
55 56 57 58 59 60
    ghc-options: -Wall

    if impl( ghc >= 7.9 )
        ghc-options:  -this-package-key template-haskell
    else
        ghc-options:  -package-name template-haskell