-
Notifications
You must be signed in to change notification settings - Fork 3
/
print-api.cabal
175 lines (146 loc) · 3.68 KB
/
print-api.cabal
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
cabal-version: 3.0
name: print-api
-- For the purpose of release and pre-release versioning, we use the following scheme:
-- EPOCH.MAJOR.MINOR.PATCH
-- with the MINOR member being even for releases and odd for pre-releases
version: 0.1.1.0
synopsis: Print the API of a package.
license: BSD-3-Clause
author: Ben Gamari, Hécate Kleidukos
maintainer: hecate+github@glitchbra.in
copyright: © 2023 Ben Gamari, 2024 Hécate Kleidukos
extra-source-files:
compat/9.10.1/GHC/Compat.hs
compat/9.6.6/GHC/Compat.hs
compat/9.8.4/GHC/Compat.hs
tested-with: GHC ==9.6.6 || ==9.8.4 || ==9.10.1
common extensions
default-extensions:
DataKinds
DeriveAnyClass
DerivingVia
DuplicateRecordFields
LambdaCase
NoStarIsType
OverloadedRecordDot
OverloadedStrings
PackageImports
RecordWildCards
StrictData
TypeFamilies
default-language: GHC2021
common ghc-options
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
-fhide-source-paths -Wno-unused-do-bind -fshow-hole-constraints
-Wno-unticked-promoted-constructors -finfo-table-map
common rts-options
ghc-options: -rtsopts -threaded "-with-rtsopts=-N -T"
common print-api-common
import: extensions
import: ghc-options
import: rts-options
hs-source-dirs: app/print-api
-- For some mysterious reason Cabal doesn't like it when there is no `main-is` in the executable section;
-- Importing it doesn't work.
-- main-is: Main.hs
build-depends:
, base
, bytestring
, extra
, ghc
, ghc-paths
, optparse-applicative
, print-api
default-language: GHC2021
library
import: extensions
import: ghc-options
hs-source-dirs: src
if impl(ghc ==9.10.1)
hs-source-dirs: compat/9.10.1
if impl(ghc ==9.8.4)
hs-source-dirs: compat/9.8.4
if impl(ghc ==9.6.6)
hs-source-dirs: compat/9.6.6
other-modules: Paths_print_api
autogen-modules: Paths_print_api
-- cabal-fmt: expand src/
exposed-modules:
GHC.Compat
PrintApi.CLI.Cmd.Dump
PrintApi.CLI.Types
PrintApi.IgnoredDeclarations
PrintApi.Utils
build-depends:
, base
, bytestring
, containers
, extra
, filepath
, ghc
, ghc-boot
, ghc-paths
, haddock-library
, optparse-applicative
, process
, text
, typed-process
executable print-api
import: extensions
import: ghc-options
import: rts-options
hs-source-dirs: app/print-api-wrapper
main-is: Main.hs
build-depends:
, base
, bytestring
, optparse-applicative
, print-api
default-language: GHC2021
executable print-api-9.6.6
import: print-api-common
main-is: Main.hs
if impl(ghc ==9.6.6)
buildable: True
else
buildable: False
executable print-api-9.8.4
import: print-api-common
main-is: Main.hs
if impl(ghc ==9.8.4)
buildable: True
else
buildable: False
executable print-api-9.10.1
import: print-api-common
main-is: Main.hs
if impl(ghc ==9.10.1)
buildable: True
else
buildable: False
test-suite print-api-test
import: extensions
import: ghc-options
import: rts-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules:
IgnoreList
Utils
build-depends:
, base
, bytestring
, directory
, extra
, filepath
, ghc
, print-api
, tasty
, tasty-coverage
, tasty-golden
, tasty-hunit
, tasty-test-reporter
, typed-process