aboutsummaryrefslogtreecommitdiff
path: root/haddock-test
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-18 23:11:59 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-22 23:40:28 +0200
commitd36a1a5fb39529e396203b4da0c396ceedda133b (patch)
tree2c3d8175591438b2a31311ce229e3256f42487cf /haddock-test
parent48b5858b9b37e4190c475558a6c88dc923ec5c5a (diff)
Make test runner ignore test packages with no modules.
Diffstat (limited to 'haddock-test')
-rw-r--r--haddock-test/src/Test/Haddock/Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-test/src/Test/Haddock/Config.hs b/haddock-test/src/Test/Haddock/Config.hs
index f3056061..b1fd2098 100644
--- a/haddock-test/src/Test/Haddock/Config.hs
+++ b/haddock-test/src/Test/Haddock/Config.hs
@@ -261,7 +261,7 @@ processFileArgs' dcfg args = do
{ tpkgName = dir
, tpkgFiles = map (srcDir' </>) files
}
- pure $ rootPkg:otherPkgs
+ pure . filter (not . null . tpkgFiles) $ rootPkg:otherPkgs
where
doesDirectoryExist' path = doesDirectoryExist (srcDir </> path)
isModule dir file = (isSourceFile file &&) <$>