-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhenforcer.cabal
More file actions
178 lines (158 loc) · 4.52 KB
/
Copy pathhenforcer.cabal
File metadata and controls
178 lines (158 loc) · 4.52 KB
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
cabal-version: 3.4
name: henforcer
version: 1.0.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: maintainers@flipstone.com
copyright: 2020-2026 Flipstone Technology Partners
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
test/test-config.toml
extra-doc-files:
ChangeLog.md
tested-with: GHC == 9.4.8, GHC == 9.6.7, GHC == 9.8.4, GHC == 9.10.3, GHC == 9.12.2, GHC == 9.14.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
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
-Winvalid-haddock
-Wredundant-bang-patterns
-Wimplicit-lift
-Woperator-whitespace
-Wredundant-strictness-flags
-fwrite-ide-info
if impl (ghc >= 9.8)
ghc-options:
-Wincomplete-export-warnings
-Wimplicit-rhs-quantification
-Wterm-variable-capture
if impl (ghc >= 9.10) && impl (ghc < 9.14)
ghc-options:
-Wdeprecated-type-abstractions
if impl (ghc >= 9.10)
ghc-options:
-Wdefaulted-exception-context
if impl (ghc >= 9.12)
ghc-options:
-Wview-pattern-signatures
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.ModuleTree
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.9
, dlist >=1.0 && <1.1
, filepattern >=0.1 && <0.2
, ghc >= 9.4.1 && <9.15
, optparse-applicative >=0.14 && <0.20
, pollock >= 0.1.0.1 && <0.2
, text >=1.2 && <2.2
, tomland >= 1.3.3.2 && < 1.4
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
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.9
, henforcer:henforcer-internal
, hedgehog >= 1.2 && < 1.8
, tasty >= 1.4 && < 1.6
, tasty-hedgehog >= 1.4 && < 1.5
default-language: Haskell2010