-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhlint.yaml
70 lines (69 loc) · 1.87 KB
/
hlint.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
- ignore:
# I find this most-often leads to less readable code, for example:
#
# Compare the cognitive over of:
#
# Use roEnabled, defaulting to True:
#
# { rEnabled = fromMaybe True roEnabled
#
# The "fixed" version, is roEnabled not presently-False?
#
# { rEnabled = Just False /= roEnabled
#
name: Use Just
- ignore:
# I find this hint is overwhelmingly false-positives
name: Reduce duplication
- ignore:
# It's common to leave a redundant do in spec, describe, it to reduce diff
# noise when specifications, contexts, and examples are inevitably added.
name: Redundant do
within: spec
- ignore:
# Gets confused my Database.Esqueleto.(^.) vs Control.Lens.(^.)
name: Redundant ^.
- ignore:
# This never helps readability, and sometimes breaks compilation since it
# can mix up precedence and won't add a possibly-required-($).
name: Use join
- ignore:
# I often make lists of lists to position commandline arguments in pairs. If
# the list is small enough HLint suggests ++.
name: Use ++
- ignore:
# Sometimes small lists (e.g. 2) of conditions read better as a list if
# they're individually long.
name: Use &&
- ignore:
# Same as ^
name: Use ||
- arguments:
# Typical extensions
- -XBangPatterns
- -XDataKinds
- -XDeriveAnyClass
- -XDeriveFoldable
- -XDeriveFunctor
- -XDeriveGeneric
- -XDeriveLift
- -XDeriveTraversable
- -XDerivingStrategies
- -XFlexibleContexts
- -XFlexibleInstances
- -XGADTs
- -XGeneralizedNewtypeDeriving
- -XLambdaCase
- -XMultiParamTypeClasses
- -XNoImplicitPrelude
- -XNoMonomorphismRestriction
- -XOverloadedStrings
- -XRankNTypes
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTypeApplications
- -XTypeFamilies
# Avoid reserved word issue
- -XNoStaticPointers