[commit: Cabal] master: Fix compilation on windows (68cb201)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:49:22 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/68cb2017a9596f82e69811d7d7c57a2a38c0ac51
>---------------------------------------------------------------
commit 68cb2017a9596f82e69811d7d7c57a2a38c0ac51
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