Skip to content

Commit 115de56

Browse files
committed
sanitize pr
1 parent 6bbfed5 commit 115de56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

integration/Setup.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Prelude
2424

2525
collectTests :: [FilePath] -> IO [(String, String, String, String)]
2626
collectTests roots = do
27-
concat <$> traverse findAllTests (map (<> "/Test") roots)
27+
concat <$> traverse (findAllTests . (<> "/Test")) roots
2828
where
2929
findAllTests :: FilePath -> IO [(String, String, String, String)]
3030
findAllTests root = do
@@ -49,7 +49,7 @@ collectTests roots = do
4949
if isDir
5050
then do
5151
entries <- listDirectory d
52-
concat <$> traverse findPaths (map (d </>) entries)
52+
concat <$> traverse (findPaths . (d </>)) entries
5353
else pure [d]
5454

5555
contexts :: [a] -> [([a], a)]
@@ -82,7 +82,7 @@ collectTestsInModule fn = do
8282
s <- readFile fn
8383
let xs = contexts (lines s)
8484
pure $ flip mapMaybe xs $ \(previousLines, line) -> do
85-
case (words line) of
85+
case words line of
8686
(name@('t' : 'e' : 's' : 't' : _) : "::" : _) -> do
8787
let (summary, fullDesc) = collectDescription previousLines
8888
pure (name, summary, fullDesc)
@@ -117,7 +117,7 @@ testHooks hooks =
117117
"allTests :: [(String, String, String, String, App ())]",
118118
"allTests =",
119119
" [",
120-
" " <> intercalate ",\n " (map (\(m, n, s, f) -> "(" <> (intercalate ", " [show m, show n, show s, show f, (m <> "." <> n)]) <> ")") tests),
120+
" " <> intercalate ",\n " (map (\(m, n, s, f) -> "(" <> intercalate ", " [show m, show n, show s, show f, (m <> "." <> n)] <> ")") tests),
121121
" ]"
122122
]
123123
)

0 commit comments

Comments
 (0)