[project @ 2000-10-05 10:05:53 by sewardj]
[ghc-hetmet.git] / ghc / compiler / ghci / CmStaticInfo.lhs
index 48594f6..2bb52ba 100644 (file)
@@ -4,7 +4,7 @@
 \section[CmStaticInfo]{Session-static info for the Compilation Manager}
 
 \begin{code}
-module CmStaticInfo ( FLAGS, PCI, 
+module CmStaticInfo ( FLAGS, Package(..), PCI, 
                       mkSI, SI -- abstract
                     )
 where
@@ -15,8 +15,25 @@ where
 
 \begin{code}
 type FLAGS = [String]       -- or some such fiction
-type PCI = [PkgConfig]
-data PkgConfig = PkgConfig   -- add details here
+type PCI = [Package]
+
+-- copied from the driver
+data Package
+   = Package {
+        name            :: String,
+        import_dirs     :: [String],
+        library_dirs    :: [String],
+        hs_libraries    :: [String],
+        extra_libraries :: [String],
+        include_dirs    :: [String],
+        c_includes      :: [String],
+        package_deps    :: [String],
+        extra_ghc_opts  :: [String],
+        extra_cc_opts   :: [String],
+        extra_ld_opts   :: [String]
+     }
+  deriving (Read, Show)
+
 
 data SI = MkSI FLAGS PCI