aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 0179115f..f11a263b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -57,6 +57,7 @@ import GHC.Paths
#endif
import GHC hiding (flags, verbosity)
+import Config
import DynFlags hiding (flags, verbosity)
#if __GLASGOW_HASKELL__ >= 609
import Panic (handleGhcException)
@@ -449,8 +450,7 @@ handleEasyFlags flags = do
"Haddock version " ++ projectVersion ++ ", (c) Simon Marlow 2006\n"
++ "Ported to use the GHC API by David Waern 2006-2008\n"
- byeGhcVersion = bye $
- (fromJust $ lookup "Project version" $ compilerInfo) ++ "\n"
+ byeGhcVersion = bye (cProjectVersion ++ "\n")
updateHTMLXRefs :: [(InterfaceFile, FilePath)] -> IO ()