summaryrefslogtreecommitdiff
path: root/compiler/GHC/HsToCore/Foreign/Decl.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/HsToCore/Foreign/Decl.hs')
-rw-r--r--compiler/GHC/HsToCore/Foreign/Decl.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/HsToCore/Foreign/Decl.hs b/compiler/GHC/HsToCore/Foreign/Decl.hs
index 49cfe5779a..f30e1bab1d 100644
--- a/compiler/GHC/HsToCore/Foreign/Decl.hs
+++ b/compiler/GHC/HsToCore/Foreign/Decl.hs
@@ -100,6 +100,7 @@ dsForeigns' fos = do
where
do_ldecl (L loc decl) = putSrcSpanDs loc (do_decl decl)
+ do_decl :: ForeignDecl GhcTc -> DsM (SDoc, SDoc, [Id], [Binding])
do_decl (ForeignImport { fd_name = id, fd_i_ext = co, fd_fi = spec }) = do
traceIf (text "fi start" <+> ppr id)
let id' = unLoc id
@@ -113,7 +114,6 @@ dsForeigns' fos = do
(L _ (CExportStatic _ ext_nm cconv)) _ }) = do
(h, c, _, _) <- dsFExport id co ext_nm cconv False
return (h, c, [id], [])
- do_decl (XForeignDecl nec) = noExtCon nec
{-
************************************************************************