[project @ 2005-04-08 13:33:24 by simonmar]
authorsimonmar <unknown>
Fri, 8 Apr 2005 13:33:24 +0000 (13:33 +0000)
committersimonmar <unknown>
Fri, 8 Apr 2005 13:33:24 +0000 (13:33 +0000)
Haddock comment on initPackages

ghc/compiler/main/Packages.lhs

index a7e48b8..65f8523 100644 (file)
@@ -183,6 +183,10 @@ getPackageDetails dflags ps = expectJust "getPackageDetails" (lookupPackage (pkg
 -- ----------------------------------------------------------------------------
 -- Loading the package config files and building up the package state
 
+-- | Call this after parsing the DynFlags.  It reads the package
+-- configuration files, and sets up various internal tables of package
+-- information, according to the package-related flags on the
+-- command-line (@-package@, @-hide-package@ etc.)
 initPackages :: DynFlags -> IO DynFlags
 initPackages dflags = do 
   pkg_map <- readPackageConfigs dflags;