#include "HsVersions.h"
import Pretty
-import SysTools ( dosifyPath )
import CmdLineOpts ( dynFlag, verbosity )
import DriverUtil ( my_prefix_match )
import ErrUtils ( dumpIfSet )
-import Outputable ( docToSDoc, trace )
+import Outputable ( docToSDoc )
\end{code}
\begin{code}
\begin{code}
mungePackagePaths :: String -> [PackageConfig] -> [PackageConfig]
--- a) replace the string "$libdir" at the beginning of a path with the
--- current libdir (obtained from the -B option).
--- b) dosify the paths [paths in the package-conf file aren't DOS style]
+-- Replace the string "$libdir" at the beginning of a path
+-- with the current libdir (obtained from the -B option).
mungePackagePaths top_dir ps = map munge_pkg ps
where
munge_pkg p = p{ import_dirs = munge_paths (import_dirs p),
munge_paths = map munge_path
munge_path p
- | Just p' <- my_prefix_match "$libdir" p = dosifyPath (top_dir ++ p')
- | otherwise = trace ("not: " ++ p) p
+ | Just p' <- my_prefix_match "$libdir" p = top_dir ++ p'
+ | otherwise = p
\end{code}
\begin{code}
showPackages :: [PackageConfig] -> IO ()
--- Show package info on console, if verbosity is >=2
+-- Show package info on console, if verbosity is >= 3
showPackages ps
= do { verb <- dynFlag verbosity
- ; dumpIfSet (verb >= 2) "Packages"
+ ; dumpIfSet (verb >= 3) "Packages"
(docToSDoc (vcat (map dumpPkgGuts ps)))
}
\end{code}