You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.hlint.yaml 1.8KB

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