[commit: packages/Cabal] ghc-head: Rename a function. (5969f0a)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:27:14 CEST 2013


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

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=5969f0ac48b518684d2b735c0410e44bdfbe419c

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

commit 5969f0ac48b518684d2b735c0410e44bdfbe419c
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Mon Jun 10 02:06:34 2013 +0200

    Rename a function.


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

5969f0ac48b518684d2b735c0410e44bdfbe419c
 cabal-install/Distribution/Client/Sandbox.hs |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/cabal-install/Distribution/Client/Sandbox.hs b/cabal-install/Distribution/Client/Sandbox.hs
index 648fe5a..b9ef2dc 100644
--- a/cabal-install/Distribution/Client/Sandbox.hs
+++ b/cabal-install/Distribution/Client/Sandbox.hs
@@ -18,6 +18,7 @@ module Distribution.Client.Sandbox (
     dumpPackageEnvironment,
     withSandboxBinDirOnSearchPath,
 
+    getSandboxConfigFilePath,
     loadConfigOrSandboxConfig,
     initPackageDBIfNeeded,
     maybeWithSandboxDirOnSearchPath,
@@ -164,8 +165,8 @@ getPkgEnvDir globalFlags = do
 
 -- | Return the path to the sandbox config file - either the default or the one
 -- specified with @--sandbox-config-file at .
-getPkgEnvFilePath :: GlobalFlags -> IO FilePath
-getPkgEnvFilePath globalFlags = do
+getSandboxConfigFilePath :: GlobalFlags -> IO FilePath
+getSandboxConfigFilePath globalFlags = do
   let sandboxConfigFileFlag = globalSandboxConfigFile globalFlags
   case sandboxConfigFileFlag of
     NoFlag -> do pkgEnvDir <- getCurrentDirectory
@@ -179,7 +180,7 @@ getPkgEnvFilePath globalFlags = do
 tryLoadSandboxConfig :: Verbosity -> GlobalFlags
                         -> IO (FilePath, PackageEnvironment)
 tryLoadSandboxConfig verbosity globalFlags = do
-  path <- getPkgEnvFilePath globalFlags
+  path <- getSandboxConfigFilePath globalFlags
   tryLoadSandboxPackageEnvironmentFile verbosity path
     (globalConfigFile globalFlags)
 
@@ -299,7 +300,7 @@ sandboxInit verbosity sandboxFlags globalFlags = do
   (comp, platform, _) <- configCompilerAux (savedConfigureFlags userConfig)
 
   -- Create the package environment file.
-  pkgEnvFile <- getPkgEnvFilePath globalFlags
+  pkgEnvFile <- getSandboxConfigFilePath globalFlags
   createPackageEnvironmentFile verbosity sandboxDir pkgEnvFile
     NoComments comp platform
   (_, pkgEnv) <- tryLoadSandboxConfig verbosity globalFlags
@@ -321,7 +322,7 @@ sandboxDelete verbosity _sandboxFlags globalFlags = do
     NoSandbox -> die "Not in a sandbox."
     UseSandbox sandboxDir -> do
       curDir     <- getCurrentDirectory
-      pkgEnvFile <- getPkgEnvFilePath globalFlags
+      pkgEnvFile <- getSandboxConfigFilePath globalFlags
 
       -- Remove the @cabal.sandbox.config@ file, unless it's in a non-standard
       -- location.





More information about the ghc-commits mailing list