summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 594de0c..61afbd8 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -149,10 +149,10 @@ main = do
out <- startOutput (optVerbose opts) useColor
tests <- forM files $ \(path, mbTestName) -> do
- fileTests <- parseTestFile path
+ Module { .. } <- parseTestFile path
return $ case mbTestName of
- Nothing -> fileTests
- Just name -> filter ((==name) . testName) fileTests
+ Nothing -> moduleTests
+ Just name -> filter ((==name) . testName) moduleTests
ok <- allM (runTest out $ optTest opts) $
concat $ replicate (optRepeat opts) $ concat tests