forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hlint.yaml
25 lines (24 loc) · 876 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
---
# this is rarely an improvement
- ignore: {name: Move brackets to avoid $}
# this is often worse
- ignore: {name: Use <$>}
# this aids clarity since you can name the parameters
- ignore: {name: Avoid lambda}
- ignore: {name: Avoid lambda using `infix`}
- ignore: {name: Replace case with fromMaybe}
# whether this is better is very variable
- ignore: {name: Use infix}
# hlint can't handle typed TH: https://github.com/haskell-suite/haskell-src-exts/issues/383
# annoyingly, 'within' doesn't seem to work if there's a parse error, so we have to blanket
# ignore it
- ignore: {name: Parse error}
# This is rarely better, and often more confusing
- ignore: {name: Use asks}
# It seems clearer to use case than fromMaybe
- ignore: {name: Use fromMaybe}
- ignore: {name: Use section}
- fixity: infixr 8 .*
- fixity: infixr 3 ***
- fixity: infixr 3 &&&
- fixity: infixr 1 <=<