File: ghc-lib-parser-ex.cabal

package info (click to toggle)
haskell-ghc-lib-parser-ex 8.10.0.16-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 192 kB
  • sloc: haskell: 1,529; ansic: 26; makefile: 6
file content (127 lines) | stat: -rw-r--r-- 3,627 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
cabal-version: >= 1.18
name:           ghc-lib-parser-ex
version:        8.10.0.16
description:    Please see the README on GitHub at <https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme>
homepage:       https://github.com/shayne-fletcher/ghc-lib-parser-ex#readme
bug-reports:    https://github.com/shayne-fletcher/ghc-lib-parser-ex/issues
author:         Shayne Fletcher
maintainer:     shayne@shaynefletcher.org
copyright:      Copyright © 2020, Shayne Fletcher. All rights reserved.
license:        BSD3
license-file:   LICENSE
category:       Development
synopsis:       Algorithms on GHC parse trees
build-type:     Simple
tested-with:    GHC==8.8.2, GHC==8.6.5
extra-source-files:
    README.md
    ChangeLog.md
    cbits/ghclib_api.h

source-repository head
  type: git
  location: https://github.com/shayne-fletcher/ghc-lib-parser-ex

flag auto
  default: True
  manual: True
  description: Use default configuration

flag no-ghc-lib
  default: False
  manual: True
  description: Force dependency on native ghc-libs

library
  exposed-modules:
      Language.Haskell.GhclibParserEx.Dump
      Language.Haskell.GhclibParserEx.Fixity
      Language.Haskell.GhclibParserEx.GHC.Settings.Config
      Language.Haskell.GhclibParserEx.GHC.Driver.Flags
      Language.Haskell.GhclibParserEx.GHC.Driver.Session
      Language.Haskell.GhclibParserEx.GHC.Hs
      Language.Haskell.GhclibParserEx.GHC.Hs.Expr
      Language.Haskell.GhclibParserEx.GHC.Hs.Pat
      Language.Haskell.GhclibParserEx.GHC.Hs.Types
      Language.Haskell.GhclibParserEx.GHC.Hs.Decls
      Language.Haskell.GhclibParserEx.GHC.Hs.Binds
      Language.Haskell.GhclibParserEx.GHC.Hs.ImpExp
      Language.Haskell.GhclibParserEx.GHC.Hs.ExtendInstances
      Language.Haskell.GhclibParserEx.GHC.Parser
      Language.Haskell.GhclibParserEx.GHC.Types.Name.Reader
      Language.Haskell.GhclibParserEx.GHC.Utils.Outputable
      -- Deprecated and will be removed in a future release.
      Language.Haskell.GhclibParserEx.Config
      Language.Haskell.GhclibParserEx.Parse
      Language.Haskell.GhclibParserEx.Outputable
  other-modules:
      Paths_ghc_lib_parser_ex
  hs-source-dirs:
      src
  build-depends:
      base >=4.7 && <5,
      uniplate >= 1.5,
      bytestring >= 0.10.8.2,
      containers >= 0.5.8.1
  if flag(auto) && impl(ghc >= 8.10.0) && impl(ghc < 8.11.0)
    build-depends:
      ghc == 8.10.*,
      ghc-boot-th,
      ghc-boot
  else
    if flag(auto)
      build-depends:
        ghc-lib-parser == 8.10.*
    else
      if flag(no-ghc-lib)
        build-depends:
          ghc,
          ghc-boot-th,
          ghc-boot
      else
        build-depends:
          ghc-lib-parser
  include-dirs:
      cbits
  install-includes:
      cbits/ghclib_api.h
  default-language: Haskell2010

test-suite ghc-lib-parser-ex-test
  type: exitcode-stdio-1.0
  main-is:
      Test.hs
  other-modules:
      Paths_ghc_lib_parser_ex
  hs-source-dirs:
      test
  include-dirs:
      cbits
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , tasty >= 1.2
    , tasty-hunit >= 0.10.0
    , directory >= 1.3.3
    , filepath >= 1.4.2
    , extra >=1.6
    , ghc-lib-parser-ex
  if flag(auto) && impl(ghc >= 8.10.0) && impl(ghc < 8.11.0)
    build-depends:
      ghc == 8.10.*,
      ghc-boot-th,
      ghc-boot
  else
    if flag(auto)
      build-depends:
        ghc-lib-parser == 8.10.*
    else
      if flag(no-ghc-lib)
        build-depends:
          ghc,
          ghc-boot-th,
          ghc-boot
      else
        build-depends:
          ghc-lib-parser
  default-language: Haskell2010