-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhenforcer.cabal
202 lines (176 loc) · 4.87 KB
/
henforcer.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
cabal-version: 3.4
name: henforcer
version: 0.1.0.1
synopsis: GHC plugin to enforce user specified rules on code.
description: Please see the README on GitHub at <https://github.com/flipstone/henforcer#readme>
category: Development, Compiler Plugin, static-analysis
homepage: https://github.com/flipstone/henforcer#readme
bug-reports: https://github.com/flipstone/henforcer/issues
author: Flipstone Technology Partners
maintainer: [email protected]
copyright: 2023-2024 Flipstone Technology Partners
license: BSD-3-Clause
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
data/henforcer.toml
extra-doc-files:
ChangeLog.md
tested-with: GHC == 9.4.8, GHC == 9.6.6, GHC == 9.8.4, GHC == 9.10.1, GHC == 9.12.1
source-repository head
type: git
location: https://github.com/flipstone/henforcer
flag ci
description: More strict ghc options used for development and ci, not intended for end-use.
manual: True
default: False
flag executable
description: Control building the executable if you only want or need the plugin.
manual: True
default: True
common ci-warnings
ghc-options:
-Wall
-Wcompat
-Werror
-Wmissing-import-lists
-Wmissing-export-lists
-Wmissing-home-modules
-Wmissed-specialisations
-Wmonomorphism-restriction
-Wpartial-fields
-Wcpp-undef
-Wredundant-constraints
-Wredundant-strictness-flags
-Wmissing-local-signatures
-Wunused-packages
-Wunused-matches
-Wunused-type-patterns
-fwrite-ide-info
if impl (ghc >= 9.8)
ghc-options:
-Wincomplete-export-warnings
-Wimplicit-rhs-quantification
-Wterm-variable-capture
if impl (ghc >= 9.10)
ghc-options:
-Wdeprecated-type-abstractions
-Wdefaulted-exception-context
library henforcer-internal
exposed-modules:
CompatGHC
Henforcer.Checks
Henforcer.CodeStructure
Henforcer.Config
Henforcer.Options
Henforcer.Rules
other-modules:
Paths_henforcer
Henforcer.Checks.DocumentationCheck
Henforcer.Checks.ImportCheck
Henforcer.Checks.ImportCheck.Check
Henforcer.Checks.ImportCheck.CheckFailure
Henforcer.CodeStructure.Import
Henforcer.CodeStructure.Import.AllowedAliasUniqueness
Henforcer.CodeStructure.Import.Import
Henforcer.CodeStructure.Import.Scheme
Henforcer.CodeStructure.Import.Scheme.Alias
Henforcer.CodeStructure.Import.Scheme.PackageQualifier
Henforcer.CodeStructure.Import.Scheme.Safe
Henforcer.CodeStructure.Import.Scheme.Scheme
Henforcer.CodeStructure.TreeName
Henforcer.Config.Config
Henforcer.Config.ForAnyModule
Henforcer.Config.ForPatternModule
Henforcer.Config.ForSpecifiedModule
Henforcer.Config.IgnoreRules
Henforcer.Config.TreeDependencies
Henforcer.Rules.ConditionallyEnforced
Henforcer.Rules.Maximum
Henforcer.Rules.Minimum
Henforcer.Rules.MustExistNonEmpty
Henforcer.Rules.UserNote
TomlHelper
autogen-modules:
Paths_henforcer
hs-source-dirs:
src
if flag(ci)
import: ci-warnings
ghc-options:
-funbox-strict-fields
-O2
build-depends:
base >=4.17 && <5
, containers >=0.6 && < 0.8
, dlist >=1.0 && <1.1
, filepattern >=0.1 && <0.2
, ghc >= 9.4.1 && <9.13
, optparse-applicative >=0.14 && <0.19
, pollock >= 0.1.0.1 && <0.2
, text >=1.2 && <2.2
, tomland >= 1.3.3.2 && < 1.4
default-extensions: StrictData
default-language: Haskell2010
library
exposed-modules:
Henforcer
hs-source-dirs:
plugin
if flag(ci)
import: ci-warnings
ghc-options:
-funbox-strict-fields
-O2
build-depends:
henforcer:henforcer-internal
, base >=4.7 && <5
, pollock >= 0.1.0.1 && <0.2
default-language: Haskell2010
executable henforcer
if !flag(executable)
buildable: False
main-is: Main.hs
other-modules:
Config.Defaults
Config.Initialize
Paths_henforcer
hs-source-dirs:
app
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N
if flag(ci)
import: ci-warnings
build-depends:
base >=4.17 && <5
, bytestring >= 0.11 && < 0.13
, directory >=1.3 && < 1.5
, file-embed ==0.0.*
, henforcer:henforcer-internal
default-language: Haskell2010
test-suite spec
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs:
test
other-modules:
Test.Config
Test.Config.Documentation
Test.Config.Import
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N
if flag(ci)
import: ci-warnings
build-depends:
base >=4.7 && <5
, containers >=0.6 && < 0.8
, henforcer:henforcer-internal
, hedgehog >= 1.2 && < 1.6
, tasty >= 1.4 && < 1.6
, tasty-hedgehog >= 1.4 && < 1.5
default-language: Haskell2010