[project @ 2004-08-31 12:45:35 by simonmar]
[ghc-hetmet.git] / ghc / utils / ghc-pkg / Main.hs
index 7eb4f3a..1c18d5a 100644 (file)
@@ -7,6 +7,7 @@
 module Main where
 
 import Package
+import Version  ( version )
 
 #if __GLASGOW_HASKELL__ >= 504
 import System.Console.GetOpt
@@ -82,10 +83,6 @@ isAction _              = True
 copyright :: String
 copyright = "GHC package manager version " ++ version ++ "\n"
 
--- hackery to convice cpp to splice GHC_PKG_VERSION into a string
-version :: String
-version = GHC_PKG_VERSION
-
 usageHeader :: String -> String
 usageHeader prog = "Usage: " ++ prog ++ " [OPTION...]\n"