[commit: ghc] ghc-7.10: compiler: don't warn on -package-name for now (fb326db)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 19:21:43 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/fb326dba5141f8636cb0c0eb0639b8d0c0caa931/ghc

>---------------------------------------------------------------

commit fb326dba5141f8636cb0c0eb0639b8d0c0caa931
Author: Austin Seipp <austin at well-typed.com>
Date:   Thu Mar 19 14:21:02 2015 -0500

    compiler: don't warn on -package-name for now
    
    This avoids the annoying conundrum explained in #9956 - for the 7.10
    release, we'll keep (silently) supporting this flag so -Werror doesn't
    trip anything up.
    
    Really, we could just say 'deal with it' to users probably, but the fix
    is painless and does remove a sharp corner.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    
    Reviewers: ezyang
    
    Differential Revision: https://phabricator.haskell.org/D742
    
    GHC Trac Issues: #9956


>---------------------------------------------------------------

fb326dba5141f8636cb0c0eb0639b8d0c0caa931
 compiler/main/DynFlags.hs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 4c93657..93c386c 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -2732,9 +2732,7 @@ package_flags = [
       (NoArg $ do removeUserPkgConf
                   deprecate "Use -no-user-package-db instead")
 
-  , defGhcFlag "package-name"      (HasArg $ \name -> do
-                                      upd (setPackageKey name)
-                                      deprecate "Use -this-package-key instead")
+  , defGhcFlag "package-name"       (hasArg setPackageKey)
   , defGhcFlag "this-package-key"   (hasArg setPackageKey)
   , defFlag "package-id"            (HasArg exposePackageId)
   , defFlag "package"               (HasArg exposePackage)



More information about the ghc-commits mailing list