2021-09-26 19:59:51 +03:00
|
|
|
# Based on HLint configuration file from https://github.com/ndmitchell/hlint
|
|
|
|
|
|
|
|
- arguments: [--color]
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
# RESTRICTIONS
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- extensions:
|
|
|
|
- default: false
|
2022-04-05 20:57:21 +03:00
|
|
|
- name:
|
|
|
|
- ApplicativeDo
|
|
|
|
- DataKinds
|
|
|
|
- DerivingStrategies
|
|
|
|
- GADTs
|
|
|
|
- ImportQualifiedPost
|
|
|
|
- LambdaCase
|
|
|
|
- NoImplicitPrelude
|
|
|
|
- OverloadedStrings
|
|
|
|
- QuasiQuotes
|
|
|
|
- RecordWildCards
|
|
|
|
- StandaloneKindSignatures
|
|
|
|
- TemplateHaskell
|
|
|
|
- TypeFamilyDependencies
|
|
|
|
- UndecidableInstances
|
|
|
|
- UnicodeSyntax
|
|
|
|
- GeneralizedNewtypeDeriving
|
2021-09-26 19:59:51 +03:00
|
|
|
|
|
|
|
- flags:
|
|
|
|
- default: false
|
2022-04-05 20:57:21 +03:00
|
|
|
- name:
|
|
|
|
- -Wall
|
|
|
|
- -Wcompat
|
|
|
|
- -Wderiving-defaults
|
|
|
|
- -Widentities
|
|
|
|
- -Wincomplete-patterns
|
|
|
|
- -Wincomplete-record-updates
|
|
|
|
- -Wincomplete-uni-patterns
|
|
|
|
- -Wmissing-deriving-strategies
|
|
|
|
- -Wredundant-constraints
|
|
|
|
- -O2 -flate-specialise -fspecialise-aggressively
|
2021-09-26 19:59:51 +03:00
|
|
|
|
|
|
|
- modules:
|
|
|
|
# if you import Data.Set qualified, it must be as 'Set'
|
2022-04-04 18:44:08 +03:00
|
|
|
- {name: [Data.Set, Data.HashSet], as: Set}
|
2021-09-26 19:59:51 +03:00
|
|
|
- {name: [Data.Map, Data.HashMap.Strict, Data.HashMap.Lazy], as: Map}
|
|
|
|
# - {name: Control.Arrow, within: []} # Certain modules are banned entirely
|
|
|
|
|
|
|
|
- functions:
|
|
|
|
- {name: Data.List.NonEmpty.nub, within: []}
|
|
|
|
- {name: Data.List.NonEmpty.nubBy, within: []}
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
# OTHER HINTS
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
|
2021-11-14 16:22:29 +03:00
|
|
|
# - warn: {name: Use explicit module export list}
|
2021-09-26 19:59:51 +03:00
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
# HINTS
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- error: {lhs: idea Warning, rhs: warn}
|
|
|
|
- error: {lhs: idea Suggestion, rhs: suggest}
|
|
|
|
- error: {lhs: ideaN Warning, rhs: warnN}
|
|
|
|
- error: {lhs: ideaN Suggestion, rhs: suggestN}
|
|
|
|
|
|
|
|
- error: {lhs: occNameString (occName (unLoc x)), rhs: rdrNameStr x}
|
|
|
|
- error: {lhs: occNameString (occName x), rhs: occNameStr x}
|
|
|
|
- error: {lhs: noLoc (HsVar noExtField (noLoc (mkRdrUnqual (mkVarOcc x)))), rhs: strToVar x}
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
# IGNORES
|
|
|
|
# --------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
- ignore: {name: Use let, within: [Test.All]}
|
2021-11-14 16:22:29 +03:00
|
|
|
- ignore: {name: Use String}
|
2022-04-04 19:03:56 +03:00
|
|
|
- ignore: {name: Avoid restricted qualification}
|