Hlint: Error: Use mapM
This commit is contained in:
parent
d0baf650f2
commit
efa31c05b9
@ -128,8 +128,8 @@ main = do
|
|||||||
putStrLn $ printf "Using %s" file
|
putStrLn $ printf "Using %s" file
|
||||||
putStrLn $ printf "Running %d tests %d times with %d executables at %s:"
|
putStrLn $ printf "Running %d tests %d times with %d executables at %s:"
|
||||||
(length tests) num (length exes) (show now)
|
(length tests) num (length exes) (show now)
|
||||||
let doexe t e = sequence $ map (doiteration opts t e) [1..num]
|
let doexe t e = mapM (doiteration opts t e) [1..num]
|
||||||
let dotest t = sequence $ map (doexe t) exes
|
let dotest t = mapM (doexe t) exes
|
||||||
hSetBuffering stdout NoBuffering
|
hSetBuffering stdout NoBuffering
|
||||||
results <- mapM dotest tests
|
results <- mapM dotest tests
|
||||||
summarise opts tests exes results
|
summarise opts tests exes results
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user