[commit: Cabal] master: Fix compilation on windows (fa23503)

Paolo Capriotti p.capriotti at gmail.com
Tue May 8 00:09:57 CEST 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/fa235038eb0821ca81927d1456c79ba61d8b289d

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

commit fa235038eb0821ca81927d1456c79ba61d8b289d
Author: Duncan Coutts <duncan at haskell.org>
Date:   Mon Jan 14 14:34:56 2008 +0000

    Fix compilation on windows
    Silly #ifdefs making things harder to test.

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

 cabal-install/Hackage/HttpUtils.hs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cabal-install/Hackage/HttpUtils.hs b/cabal-install/Hackage/HttpUtils.hs
index ba3d404..4dc9ee5 100644
--- a/cabal-install/Hackage/HttpUtils.hs
+++ b/cabal-install/Hackage/HttpUtils.hs
@@ -13,6 +13,7 @@ import Control.Monad (mplus)
 import Control.Exception (try)
 #ifdef WIN32
 import System.Win32.Registry (hKEY_CURRENT_USER, regOpenKey, regQueryValue, regCloseKey)
+import Control.Exception (bracket)
 #endif
 import System.Environment (getEnvironment)
 





More information about the Cvs-libraries mailing list