template-haskell.cabal.in 2.06 KB
Newer Older
Ryan Scott's avatar
Ryan Scott committed
1 2 3 4
-- WARNING: template-haskell.cabal is automatically generated from template-haskell.cabal.in by
-- ../../configure.  Make sure you are editing template-haskell.cabal.in, not
-- template-haskell.cabal.

5
name:           template-haskell
6
version:        2.15.0.0
7
-- NOTE: Don't forget to update ./changelog.md
8 9 10 11
license:        BSD3
license-file:   LICENSE
category:       Template Haskell
maintainer:     libraries@haskell.org
12
bug-reports:    https://gitlab.haskell.org/ghc/ghc/issues/new
13 14 15
synopsis:       Support library for Template Haskell
build-type:     Simple
Cabal-Version:  >= 1.10
16
description:
17 18 19 20 21 22
    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.

23 24
extra-source-files: changelog.md

25 26
source-repository head
    type:     git
27 28
    location: http://git.haskell.org/ghc.git
    subdir:   libraries/template-haskell
29 30

Library
31 32
    default-language: Haskell2010
    other-extensions:
33 34 35
        BangPatterns
        CPP
        DefaultSignatures
36
        DeriveDataTypeable
37
        DeriveGeneric
38 39
        FlexibleInstances
        RankNTypes
40
        RoleAnnotations
41 42
        ScopedTypeVariables

43
    exposed-modules:
44
        Language.Haskell.TH
45
        Language.Haskell.TH.Lib
46 47
        Language.Haskell.TH.Ppr
        Language.Haskell.TH.PprLib
48
        Language.Haskell.TH.Quote
49
        Language.Haskell.TH.Syntax
50
        Language.Haskell.TH.LanguageExtensions
51

Ryan Scott's avatar
Ryan Scott committed
52 53
        Language.Haskell.TH.Lib.Internal

54 55 56
    other-modules:
        Language.Haskell.TH.Lib.Map

57
    build-depends:
58
        base        >= 4.11 && < 4.14,
Ryan Scott's avatar
Ryan Scott committed
59
        ghc-boot-th == @ProjectVersionMunged@,
60
        pretty      == 1.1.*
61

62 63
    ghc-options: -Wall

64 65 66
    -- We need to set the unit ID to template-haskell (without a
    -- version number) as it's magic.
    ghc-options: -this-unit-id template-haskell
67 68 69 70 71

    -- This should match the default-extensions used in 'ghc.cabal'. This way,
    -- GHCi can be used to load it along with the compiler.
    Default-Extensions:
        NoImplicitPrelude