-
Notifications
You must be signed in to change notification settings - Fork 4
/
.hlint.yaml
21 lines (18 loc) · 860 Bytes
/
.hlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- warn: {lhs: x >> return y, rhs: x $> y}
- warn: {lhs: return x << y, rhs: x <$ y}
- warn: {lhs: return x, rhs: pure x}
# Rearrange inequalities so the style is closer to math.
- warn: {lhs: x >= y && x <= z, rhs: y <= x && x <= z}
- warn: {lhs: y <= x && z >= x, rhs: y <= x && x <= z}
- warn: {lhs: x >= y && x < z, rhs: y <= x && x < z}
- warn: {lhs: y <= x && z > x, rhs: y <= x && x < z}
- warn: {lhs: x > y && x <= z, rhs: y < x && x <= z}
- warn: {lhs: y < x && z >= x, rhs: y < x && x <= z}
- warn: {lhs: x > y && x < z, rhs: y < x && x < z}
- warn: {lhs: y < x && z > x, rhs: y < x && x < z}
# Replace a $ b $ c with a . b $ c
- group: {name: dollar, enabled: true}
# Hasmin specific
- warn: {lhs: skipComments *> x <* skipComments, rhs: lexeme x}
- warn: {lhs: "option Nothing (Just <$> p)", rhs: optional p}
- ignore: {name: Use String}