From fb9d9c6a05e89bfe77cf7fe0735f4ebaeb1e88b4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 5 Feb 2021 22:16:49 -0500 Subject: Prefer traverse over mapM --- .hlint.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.hlint.yaml') 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_' -- cgit v1.2.3