aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authordavve <davve@dtek.chalmers.se>2007-02-04 19:33:02 +0000
committerdavve <davve@dtek.chalmers.se>2007-02-04 19:33:02 +0000
commitb07ed2188bb5f5824d27ee821b3d6e2549618963 (patch)
tree5caa67a9aec6bf61c91c276fffffaa728829bc3e /src/Main.hs
parent2c223f8d84c97062e90ad87d5752b3c0e17b450d (diff)
Comment out minf_iface based stuff
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 5763e90b..db6b0775 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1212,6 +1212,7 @@ packageModules pkgInfo = map (mkModule (pkgId pkgInfo)) moduleNames
pkgId :: InstalledPackageInfo -> PackageId
pkgId = mkPackageId . package
+{-
-- | Topologically sort a list of modules that belong to an external package,
-- using the dependency information available in the ModIface structure for
-- each module.
@@ -1224,6 +1225,7 @@ sortPackageModules modinfos = flattenSCCs $ stronglyConnComp nodes
modNames = (map fst . dep_mods . mi_deps) iface
modName = moduleName (mi_module iface)
in (modinfo, modName, modNames)
+-}
-- | For each module in the list, try to retrieve a ModuleInfo structure
moduleInfo :: Session -> [Module] -> IO (Maybe [ModuleInfo])
@@ -1264,7 +1266,7 @@ getPackage session pkgInfo = do
Just x -> return x
Nothing -> throwE "Could not get ModuleInfo for all exposed modules."
- let modInfos' = sortPackageModules modInfos
+ --let modInfos' = sortPackageModules modInfos
return $ PackageData {
pdModules = modules,
@@ -1273,7 +1275,7 @@ getPackage session pkgInfo = do
}
-- | Build a package doc env out of a topologically sorted list of modules
-packageDocEnv :: [ModuleInfo] -> Map Name Name
+{-packageDocEnv :: [ModuleInfo] -> Map Name Name
packageDocEnv modInfos = foldl addModuleEnv Map.empty (reverse modInfos)
where
addModuleEnv oldEnv thisMod
@@ -1289,6 +1291,7 @@ packageDocEnv modInfos = foldl addModuleEnv Map.empty (reverse modInfos)
keepOld env n = Map.insertWith (\new old -> old) n
(nameSetMod n modName) env
keepNew env n = Map.insert n (nameSetMod n modName) env
+-}
-- | Try to create a PackageData for each package in the session except for
-- rts. Print a warning on stdout if a PackageData could not be created.