summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc/compiler/main/Main.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs
index 95891f76ef..37ce970c6f 100644
--- a/ghc/compiler/main/Main.hs
+++ b/ghc/compiler/main/Main.hs
@@ -405,7 +405,12 @@ showBanner cli_mode dflags = do
do hPutStr stderr "Glasgow Haskell Compiler, Version "
hPutStr stderr cProjectVersion
hPutStr stderr ", for Haskell 98, compiled by GHC version "
+#ifdef GHCI
+ -- GHCI is only set when we are bootstrapping...
+ hPutStrLn stderr cProjectVersion
+#else
hPutStrLn stderr cBooterVersion
+#endif
showVersion :: IO ()
showVersion = do