summaryrefslogtreecommitdiff
path: root/th-abstraction.cabal
blob: ebffd852b09d12c56f56b2a7ba582bc61996f697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name:                th-abstraction
version:             0.4.5.0
x-revision: 1
synopsis:            Nicer interface for reified information about data types
description:         This package normalizes variations in the interface for
                     inspecting datatype information via Template Haskell
                     so that packages and support a single, easier to use
                     informational datatype while supporting many versions
                     of Template Haskell.
license:             ISC
license-file:        LICENSE
author:              Eric Mertens
maintainer:          emertens@gmail.com
copyright:           2017 Eric Mertens
homepage:            https://github.com/glguy/th-abstraction
bug-reports:         https://github.com/glguy/th-abstraction/issues
category:            Development
build-type:          Simple
extra-source-files:  ChangeLog.md README.md
cabal-version:       >=1.10
tested-with:         GHC==9.2.2, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4

source-repository head
  type: git
  location: https://github.com/glguy/th-abstraction.git

library
  exposed-modules:     Language.Haskell.TH.Datatype
                       Language.Haskell.TH.Datatype.TyVarBndr
  other-modules:       Language.Haskell.TH.Datatype.Internal
  build-depends:       base             >=4.3   && <5,
                       ghc-prim,
                       template-haskell >=2.5   && <2.21,
                       containers       >=0.4   && <0.7
  hs-source-dirs:      src
  default-language:    Haskell2010

  if impl(ghc >= 9.0)
    -- these flags may abort compilation with GHC-8.10
    -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295
    ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode

test-suite unit-tests
  other-modules:       Harness
                       Types
  type:                exitcode-stdio-1.0
  main-is:             Main.hs
  build-depends:       th-abstraction, base, containers, template-haskell
  hs-source-dirs:      test
  default-language:    Haskell2010