|
129 | 129 | - {name: [-Wno-dodgy-imports,-Wno-incomplete-uni-patterns], within: [Main, Development.IDE.GHC.Compat, Development.IDE.GHC.Compat.Core, Development.Benchmark.Rules]}
|
130 | 130 | - {name: [-Wno-unused-imports], within: [Development.IDE.GHC.Compat.Core]}
|
131 | 131 | - {name: [-Wno-deprecations, -Wno-unticked-promoted-constructors], within: [Main, Experiments]}
|
132 |
| -# - modules: |
133 |
| -# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set' |
134 |
| -# - {name: Control.Arrow, within: []} # Certain modules are banned entirely |
135 |
| -# |
| 132 | + |
136 | 133 | - functions:
|
137 | 134 | # Things that are unsafe in Haskell base library
|
138 | 135 | - {name: unsafeInterleaveIO, within: [Development.IDE.LSP.LanguageServer]}
|
|
222 | 219 | # We really do not want novel usages of restricted functions, and mere
|
223 | 220 | # Warning is not enough to prevent those consistently; you need a build failure.
|
224 | 221 | - error: {name: Avoid restricted function}
|
225 |
| - |
226 |
| -# Add custom hints for this project |
227 |
| -# |
228 |
| -# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar" |
229 |
| -# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x} |
230 |
| - |
231 |
| -# Turn on hints that are off by default |
232 |
| -# |
233 |
| -# Ban "module X(module X) where", to require a real export list |
234 |
| -# - warn: {name: Use explicit module export list} |
235 |
| -# |
236 |
| -# Replace a $ b $ c with a . b $ c |
237 |
| -# - group: {name: dollar, enabled: true} |
238 |
| -# |
239 |
| -# Generalise map to fmap, ++ to <> |
240 |
| -# - group: {name: generalise, enabled: true} |
241 |
| - |
242 |
| -# Ignore some builtin hints |
243 |
| -# - ignore: {name: Use let} |
244 |
| -# - ignore: {name: Use const, within: SpecialModule} # Only within certain modules |
245 |
| - |
246 |
| -# Define some custom infix operators |
247 |
| -# - fixity: infixr 3 ~^#^~ |
0 commit comments