aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/HaddockHtml.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/HaddockHtml.hs b/src/HaddockHtml.hs
index 92e16e72..96658cb6 100644
--- a/src/HaddockHtml.hs
+++ b/src/HaddockHtml.hs
@@ -323,6 +323,7 @@ ifaceToHtml mod iface
has_doc (ExportDecl d)
| Just x <- declMainBinder d = isJust (lookupFM doc_map x)
+ has_doc (ExportModule _) = False
has_doc _ = True
no_doc_at_all = not (any has_doc exports)