aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 96ea3b4b..46c1353b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -880,6 +880,7 @@ fullContentsOfThisModule module_ entities declMap docMap
where
mkExportItem (DocEntity (DocGroup lev doc)) = Just (ExportGroup lev "" doc)
mkExportItem (DeclEntity name) = fmap mkExport (Map.lookup name declMap)
+ mkExportItem _ = Nothing
where mkExport decl = ExportDecl name decl (Map.lookup name docMap) []
-- Sometimes the declaration we want to export is not the "main" declaration: