X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnNames.lhs;h=8b09f52a9a9b7d9cdba2f3b63248ce9ed75f8b98;hb=82661b7fb0e50e614546658deef1086247f54d9d;hp=39b43acec43aea26270d596e8ecfb1b28f788436;hpb=5b2d14201d66e280368f37c922d164a356f18107;p=ghc-hetmet.git diff --git a/compiler/rename/RnNames.lhs b/compiler/rename/RnNames.lhs index 39b43ac..8b09f52 100644 --- a/compiler/rename/RnNames.lhs +++ b/compiler/rename/RnNames.lhs @@ -65,9 +65,7 @@ rnImports imports -- warning for {- SOURCE -} ones that are unnecessary = do this_mod <- getModule implicit_prelude <- doptM Opt_ImplicitPrelude - implicit_ndp <- doptM Opt_Vectorise let prel_imports = mkPrelImports this_mod implicit_prelude imports - ndp_imports = mkNDPImports implicit_ndp (source, ordinary) = partition is_source_import imports is_source_import (L _ (ImportDecl _ is_boot _ _ _)) = is_boot @@ -75,9 +73,7 @@ rnImports imports when (notNull prel_imports) $ addWarn (implicitPreludeWarn) ) - stuff1 <- mapM (rnImportDecl this_mod) (prel_imports - ++ ndp_imports - ++ ordinary) + stuff1 <- mapM (rnImportDecl this_mod) (prel_imports ++ ordinary) stuff2 <- mapM (rnImportDecl this_mod) source let (decls, rdr_env, imp_avails,hpc_usage) = combine (stuff1 ++ stuff2) return (decls, rdr_env, imp_avails,hpc_usage) @@ -121,20 +117,6 @@ mkPrelImports this_mod implicit_prelude import_decls loc = mkGeneralSrcSpan FSLIT("Implicit import declaration") -mkNDPImports :: Bool -> [LImportDecl RdrName] -mkNDPImports False = [] -mkNDPImports True = [ndpImportDecl] - where - ndpImportDecl - = L loc $ - ImportDecl (L loc nDP_INTERFACE_NAME) - False -- not a boot interface - True -- qualified - (Just nDP_BUILTIN) -- "as" - Nothing -- no import list - - loc = mkGeneralSrcSpan FSLIT("Implicit import declaration") - rnImportDecl :: Module -> LImportDecl RdrName