[commit: packages/Win32] master: Replace obsolete `defaultUserHooks` by `autoconfUserHooks` (6cc0f90)

git at git.haskell.org git at git.haskell.org
Thu Jul 30 06:57:34 UTC 2015


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

On branch  : master
Link       : http://git.haskell.org/packages/Win32.git/commitdiff/6cc0f902a3aec5a9161a9268c9ad4598ad4a5e36

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

commit 6cc0f902a3aec5a9161a9268c9ad4598ad4a5e36
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Sep 27 10:00:44 2014 +0200

    Replace obsolete `defaultUserHooks` by `autoconfUserHooks`
    
    This is to avoid the warning printed otherwise when executing `Setup.hs`:
    
      Setup.hs:6:29: Warning:
          In the use of ‘defaultUserHooks’
          (imported from Distribution.Simple):
          Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
                 compatibility in which case you must stick with defaultUserHooks"
      Warning: defaultUserHooks in Setup script is deprecated.
      Configuring Win32-2.3.0.2...


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

6cc0f902a3aec5a9161a9268c9ad4598ad4a5e36
 Setup.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Setup.hs b/Setup.hs
index 7cf9bfd..54f57d6 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -3,4 +3,4 @@ module Main (main) where
 import Distribution.Simple
 
 main :: IO ()
-main = defaultMainWithHooks defaultUserHooks
+main = defaultMainWithHooks autoconfUserHooks



More information about the ghc-commits mailing list