Fix another buglet in HsDoc stuff
authorsimonpj@microsoft.com <unknown>
Wed, 3 Jan 2007 09:40:58 +0000 (09:40 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 3 Jan 2007 09:40:58 +0000 (09:40 +0000)
A 'foreign export' represents an *occurrence* of a Haskell name,
not a *binding* site for the Haskell name.

(This was making cc012 fail; Trac #1054.

compiler/hsSyn/HsUtils.lhs

index b80145a..51925f8 100644 (file)
@@ -445,7 +445,6 @@ getMainDeclBinder (ValD d)
         (name:_) -> Just (unLoc name)
 getMainDeclBinder (SigD d) = sigNameNoLoc d
 getMainDeclBinder (ForD (ForeignImport name _ _)) = Just (unLoc name)
-getMainDeclBinder (ForD (ForeignExport name _ _)) = Just (unLoc name)
+getMainDeclBinder (ForD (ForeignExport name _ _)) = Nothing
 getMainDeclBinder _ = Nothing
-
 \end{code}