|
| 1 | +# HLint configuration file |
| 2 | +# https://github.com/ndmitchell/hlint |
| 3 | +########################## |
| 4 | + |
| 5 | +# This file contains a template configuration file, which is typically |
| 6 | +# placed as .hlint.yaml in the root of your project |
| 7 | + |
| 8 | + |
| 9 | +# Warnings currently triggered by your code |
| 10 | +- ignore: {name: "Eta reduce"} |
| 11 | + |
| 12 | + |
| 13 | +# Specify additional command line arguments |
| 14 | +# |
| 15 | +# - arguments: [--color, --cpp-simple, -XQuasiQuotes] |
| 16 | + |
| 17 | + |
| 18 | +# Control which extensions/flags/modules/functions can be used |
| 19 | +# |
| 20 | +# - extensions: |
| 21 | +# - default: false # all extension are banned by default |
| 22 | +# - name: [PatternGuards, ViewPatterns] # only these listed extensions can be used |
| 23 | +# - {name: CPP, within: CrossPlatform} # CPP can only be used in a given module |
| 24 | +# |
| 25 | +# - flags: |
| 26 | +# - {name: -w, within: []} # -w is allowed nowhere |
| 27 | +# |
| 28 | +# - modules: |
| 29 | +# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set' |
| 30 | +# - {name: Control.Arrow, within: []} # Certain modules are banned entirely |
| 31 | +# |
| 32 | +# - functions: |
| 33 | +# - {name: unsafePerformIO, within: []} # unsafePerformIO can only appear in no modules |
| 34 | + |
| 35 | + |
| 36 | +# Add custom hints for this project |
| 37 | +# |
| 38 | +# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar" |
| 39 | +# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x} |
| 40 | + |
| 41 | + |
| 42 | +# Turn on hints that are off by default |
| 43 | +# |
| 44 | +# Ban "module X(module X) where", to require a real export list |
| 45 | +# - warn: {name: Use explicit module export list} |
| 46 | +# |
| 47 | +# Replace a $ b $ c with a . b $ c |
| 48 | +# - group: {name: dollar, enabled: true} |
| 49 | +# |
| 50 | +# Generalise map to fmap, ++ to <> |
| 51 | +# - group: {name: generalise, enabled: true} |
| 52 | + |
| 53 | + |
| 54 | +# Ignore some builtin hints |
| 55 | +# - ignore: {name: Use let} |
| 56 | +# - ignore: {name: Use const, within: SpecialModule} # Only within certain modules |
| 57 | + |
| 58 | + |
| 59 | +# Define some custom infix operators |
| 60 | +# - fixity: infixr 3 ~^#^~ |
| 61 | + |
| 62 | + |
| 63 | +# To generate a suitable file for HLint do: |
| 64 | +# $ hlint --default > .hlint.yaml |
0 commit comments