[project @ 2001-03-19 16:20:44 by simonpj]
[ghc-hetmet.git] / ghc / compiler / compMan / CmStaticInfo.lhs
index 5420bfc..0c310f8 100644 (file)
@@ -4,7 +4,7 @@
 \section[CmStaticInfo]{Session-static info for the Compilation Manager}
 
 \begin{code}
-module CmStaticInfo ( GhciMode(..), Package(..), PackageConfigInfo )
+module CmStaticInfo ( GhciMode(..), PackageConfig(..), defaultPackageConfig )
 where
 
 #include "HsVersions.h"
@@ -12,24 +12,8 @@ where
 \end{code}
 
 \begin{code}
-data GhciMode = Batch | Interactive
+data GhciMode = Batch | Interactive | OneShot 
+     deriving Eq
 
-type PackageConfigInfo = [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
+#include "../utils/ghc-pkg/Package.hs"
 \end{code}