summaryrefslogtreecommitdiff
path: root/.hlint.yaml
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-02-05 22:16:49 -0500
committerBen Sima <ben@bsima.me>2021-02-05 22:16:49 -0500
commitfb9d9c6a05e89bfe77cf7fe0735f4ebaeb1e88b4 (patch)
tree562b6709d485530c581706a4957fd5225f2b99dd /.hlint.yaml
parenteaf2f30c93080ad9a00246885c3321baa815f780 (diff)
Prefer traverse over mapM
Diffstat (limited to '.hlint.yaml')
-rw-r--r--.hlint.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.hlint.yaml b/.hlint.yaml
index 7c00f19..1ab3ef0 100644
--- a/.hlint.yaml
+++ b/.hlint.yaml
@@ -80,3 +80,13 @@
lhs: 'return'
note: 'Use the more general Applicative interface'
rhs: 'pure'
+
+- hint:
+ lhs: 'mapM'
+ note: 'traverse is easier to read than mapM'
+ rhs: 'traverse'
+
+- hint:
+ lhs: 'mapM_'
+ note: 'traverse_ is easier to read than mapM'
+ rhs: 'traverse_'