forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HLint.hs
36 lines (30 loc) · 1.01 KB
/
HLint.hs
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
-- HLint configuration file
module HLint.HLint where
-- mimic default HLint.hs
-- https://github.com/ndmitchell/hlint/blob/master/data/HLint.hs
import "hint" HLint.Default
import "hint" HLint.Builtin.All
ignore "Use fewer imports" =
System.Process.Read -- Related to 'Hide post-AMP warnings' comment
Stack.Exec -- ifdef for System.Process.Read
-- Related to 'explicit pattern matching is clearer' comment
ignore "Use fromMaybe" =
Stack.Types.Config.explicitSetupDeps
-- For clarity (related to do syntax)
ignore "Reduce duplication" =
Network.HTTP.Download.VerifiedSpec
Stack.PackageDumpSpec
Stack.Types.StackT
Stack.Docker
-- Not considered useful hints
ignore "Redundant do"
ignore "Use section"
ignore "Use camelCase"
ignore "Use list comprehension"
ignore "Redundant if"
ignore "Avoid lambda"
ignore "Eta reduce"
ignore "Use fmap" -- specific to GHC 7.8 compat
ignore "Parse error" -- we trust the compiler over HLint
ignore "Use ==" -- Creates infinite loops in `EQ` using expressions
ignore "Evaluate"