aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Méric de Bellefon <arnaudpourseb@gmail.com>2016-06-24 00:04:48 -0400
committerGitHub <noreply@github.com>2016-06-24 00:04:48 -0400
commit011c9e32d0449205e82479408dca2b4391e13fcf (patch)
tree51e754c262330547574454c33230966fe4621d4a
parent1cb73d6afaa2438dc67fa70fd3a8c64ba68343a0 (diff)
parentbc8de008b271ca4b9eb99f8043d08c42ab1734f0 (diff)
Merge pull request #537 from Helkafen/master
do not create empty src directory
-rw-r--r--haddock-api/src/Haddock.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock.hs b/haddock-api/src/Haddock.hs
index 5e8f4a4a..28974d19 100644
--- a/haddock-api/src/Haddock.hs
+++ b/haddock-api/src/Haddock.hs
@@ -336,7 +336,7 @@ render dflags flags qual ifaces installedIfaces extSrcMap = do
ppLaTeX title pkgStr visibleIfaces odir (fmap _doc prologue) opt_latex_style
libDir
- when (Flag_HyperlinkedSource `elem` flags) $ do
+ when (Flag_HyperlinkedSource `elem` flags && not (null ifaces)) $ do
ppHyperlinkedSource odir libDir opt_source_css pretty srcMap ifaces
-- | From GHC 7.10, this function has a potential to crash with a