Exclude Cabal PackageTests from gen_contents_index.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 6 Oct 2016 23:20:24 +0000 (16:20 -0700)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Sat, 8 Oct 2016 07:20:34 +0000 (00:20 -0700)
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
libraries/gen_contents_index

index 27fa3c7..29be2e1 100644 (file)
@@ -33,7 +33,8 @@ then
     cd dist-haddock
 
     HADDOCK=../../inplace/bin/haddock
-    HADDOCK_FILES=`find ../ -name *.haddock | sort`
+    # Exclude Cabal package-tests, which may run haddock
+    HADDOCK_FILES=`find ../ -name *.haddock | grep -v 'PackageTests' | sort`
     HADDOCK_ARGS="-p ../prologue.txt"
     for HADDOCK_FILE in $HADDOCK_FILES
     do