forked from simmsb/calamity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
31 lines (22 loc) · 953 Bytes
/
.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
# HLint configuration file
# https://github.com/ndmitchell/hlint
- arguments: [--color=auto]
# Replace a $ b $ c with a . b $ c
- group: {name: dollar, enabled: true}
# Generalise map to fmap, ++ to <>
- group: {name: generalise, enabled: true}
# Change the severity of the default group to warning
- warn: {group: {name: default}}
# Ignore the highly noisy module export list hint
- ignore: {name: Use module export list}
# Ignore some builtin hints
- ignore: {name: Use mappend}
- ignore: {name: Redundant do}
- ignore: {name: Redundant <$>}
- ignore: {name: Use fmap} # Ignored because map has better type inference.
# Change the severity of hints we don’t want to fail CI for
- suggest: {name: Eta reduce}
# Conveniences
- warning: {lhs: maybe a pure, rhs: maybeM a, name: Use maybeM}
- warning: {lhs: either (const a) id, rhs: fromRight a, name: use fromRight}
- warning: {lhs: either id (const a), rhs: fromLeft a, name: use fromRight}