summaryrefslogtreecommitdiff
path: root/Biz/Lint.hs
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 /Biz/Lint.hs
parenteaf2f30c93080ad9a00246885c3321baa815f780 (diff)
Prefer traverse over mapM
Diffstat (limited to 'Biz/Lint.hs')
-rw-r--r--Biz/Lint.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Biz/Lint.hs b/Biz/Lint.hs
index 2fc8522..d708c45 100644
--- a/Biz/Lint.hs
+++ b/Biz/Lint.hs
@@ -106,10 +106,10 @@ run :: [FilePath] -> IO [Result]
run paths = do
cwd <- Directory.getCurrentDirectory
root <- Environment.getEnv "BIZ_ROOT"
- concat </ mapM (runOne root cwd) paths
+ concat </ traverse (runOne root cwd) paths
runOne :: FilePath -> FilePath -> FilePath -> IO [Result]
-runOne root cwd path_ = results +> mapM_ printResult >> results
+runOne root cwd path_ = results +> traverse_ printResult >> results
where
results =
sequence <| case Namespace.fromPath root (cwd </> path_) of