[commit: Cabal] master: Fixing a few warnings. (b2f208a)
Ian Lynagh
igloo at earth.li
Fri Nov 4 18:07:07 CET 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/b2f208a0679e68736259fc5705a90be89b8a4467
>---------------------------------------------------------------
commit b2f208a0679e68736259fc5705a90be89b8a4467
Author: Andres Loeh <andres at well-typed.com>
Date: Fri Jul 8 07:47:44 2011 +0000
Fixing a few warnings.
>---------------------------------------------------------------
cabal-install/Distribution/Client/List.hs | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/cabal-install/Distribution/Client/List.hs b/cabal-install/Distribution/Client/List.hs
index 2f9133c..27fbf41 100644
--- a/cabal-install/Distribution/Client/List.hs
+++ b/cabal-install/Distribution/Client/List.hs
@@ -15,8 +15,7 @@ module Distribution.Client.List (
import Distribution.Package
( PackageName(..), Package(..), packageName, packageVersion
- , Dependency(..), InstalledPackageId()
- , thisPackageVersion, depends, simplifyDependency )
+ , Dependency(..), simplifyDependency )
import Distribution.ModuleName (ModuleName)
import Distribution.License (License)
import qualified Distribution.InstalledPackageInfo as Installed
@@ -42,8 +41,7 @@ import Distribution.Text
( Text(disp), display )
import Distribution.Client.Types
- ( SourcePackage(..), Repo, SourcePackageDb(..)
- , InstalledPackage(..) )
+ ( SourcePackage(..), Repo, SourcePackageDb(..) )
import Distribution.Client.Dependency.Types
( PackageConstraint(..), ExtDependency(..) )
import Distribution.Client.Targets
@@ -183,7 +181,7 @@ info verbosity packageDBs repos comp conf
| otherwise
= Right $ mergePackageInfo pref installedPkgs
- sourcePkgs selectedSourcePkg
+ sourcePkgs selectedSourcePkg'
showPkgVersion
where
pref = prefs name
@@ -194,7 +192,7 @@ info verbosity packageDBs repos comp conf
(Dependency name verConstraint)
selectedSourcePkgs = PackageIndex.lookupDependency sourcePkgIndex
(Dependency name verConstraint)
- selectedSourcePkg = latestWithPref pref selectedSourcePkgs
+ selectedSourcePkg' = latestWithPref pref selectedSourcePkgs
-- display a specific package version if the user
-- supplied a non-trivial version constraint
More information about the Cvs-libraries
mailing list