aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/GhcUtils.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-10-01 01:34:06 +0100
committerIan Lynagh <igloo@earth.li>2011-10-01 01:34:06 +0100
commit8b2ee333020aeb9e639cd1772e1dca3b4b4ef3d2 (patch)
tree8c5eabb23c94b9204bb4691a015af4480b79b4d8 /src/Haddock/GhcUtils.hs
parent813a8f79109cf854f9515ec55289d4a5efc1388d (diff)
Follow changes to ForeignImport/ForeignExport in GHC
Diffstat (limited to 'src/Haddock/GhcUtils.hs')
-rw-r--r--src/Haddock/GhcUtils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Haddock/GhcUtils.hs b/src/Haddock/GhcUtils.hs
index f79acd94..33ae1b6d 100644
--- a/src/Haddock/GhcUtils.hs
+++ b/src/Haddock/GhcUtils.hs
@@ -96,8 +96,8 @@ getMainDeclBinder (ValD d) =
#endif
getMainDeclBinder (SigD d) = sigNameNoLoc d
-getMainDeclBinder (ForD (ForeignImport name _ _)) = [unLoc name]
-getMainDeclBinder (ForD (ForeignExport _ _ _)) = []
+getMainDeclBinder (ForD (ForeignImport name _ _ _)) = [unLoc name]
+getMainDeclBinder (ForD (ForeignExport _ _ _ _)) = []
getMainDeclBinder _ = []
-- Useful when there is a signature with multiple names, e.g.