[commit: ghc] master: ghc-pkg: print version when verbose (55c737f)
git at git.haskell.org
git at git.haskell.org
Sun Nov 29 12:22:09 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/55c737fdeca666c0a6ee898bd368d4d11a47499a/ghc
>---------------------------------------------------------------
commit 55c737fdeca666c0a6ee898bd368d4d11a47499a
Author: Adam Sandberg Eriksson <adam at sandbergericsson.se>
Date: Fri Nov 27 16:16:23 2015 +0100
ghc-pkg: print version when verbose
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1534
>---------------------------------------------------------------
55c737fdeca666c0a6ee898bd368d4d11a47499a
utils/ghc-pkg/Main.hs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 13e6d6f..993aa12 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -337,6 +337,8 @@ data PackageArg
runit :: Verbosity -> [Flag] -> [String] -> IO ()
runit verbosity cli nonopts = do
installSignalHandlers -- catch ^C and clean up
+ when (verbosity >= Verbose)
+ (putStr ourCopyright)
prog <- getProgramName
let
force
More information about the ghc-commits
mailing list