X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FdeSugar%2FDsMeta.hs;h=ba13bf73c2d587624a8254c3dd0af3ac96868818;hp=c1f2456830344315e09c9d31ebe5e67becee3474;hb=c1a31d0d47994808ca7b8389a1d5d634b45d6755;hpb=d54ca9c56b628c9676286af15a995bc3ce791456 diff --git a/compiler/deSugar/DsMeta.hs b/compiler/deSugar/DsMeta.hs index c1f2456..ba13bf7 100644 --- a/compiler/deSugar/DsMeta.hs +++ b/compiler/deSugar/DsMeta.hs @@ -135,7 +135,7 @@ groupBinders (HsGroup { hs_valds = val_decls, hs_tyclds = tycl_decls, -- Collect the binders of a Group = collectHsValBinders val_decls ++ [n | d <- tycl_decls, n <- tyClDeclNames (unLoc d)] ++ - [n | L _ (ForeignImport n _ _ _) <- foreign_decls] + [n | L _ (ForeignImport n _ _) <- foreign_decls] {- Note [Binders and occurrences] @@ -251,7 +251,7 @@ repInstD' (L loc (InstDecl ty binds _)) -- Ignore user pragmas for now (tvs, cxt, cls, tys) = splitHsInstDeclTy (unLoc ty) repForD :: Located (ForeignDecl Name) -> DsM (SrcSpan, Core TH.DecQ) -repForD (L loc (ForeignImport name typ (CImport cc s ch cn cis) _)) +repForD (L loc (ForeignImport name typ (CImport cc s ch cn cis))) = do MkC name' <- lookupLOcc name MkC typ' <- repLTy typ MkC cc' <- repCCallConv cc