[commit: Cabal] master: removing datatype contexts (cea04ca)
Ian Lynagh
igloo at earth.li
Tue Jan 3 00:48:51 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/cea04ca67b6d9d647967ce44ba01d49e9df37ef6
>---------------------------------------------------------------
commit cea04ca67b6d9d647967ce44ba01d49e9df37ef6
Author: Andres Loeh <andres at well-typed.com>
Date: Fri Dec 16 14:43:55 2011 +0000
removing datatype contexts
>---------------------------------------------------------------
.../Client/Dependency/TopDown/Constraints.hs | 3 +--
cabal-install/Distribution/Client/PackageIndex.hs | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs b/cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs
index 216cf71..375415b 100644
--- a/cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs
+++ b/cabal-install/Distribution/Client/Dependency/TopDown/Constraints.hs
@@ -71,8 +71,7 @@ import Control.Exception
-- Adding a new target package can fail if that package already has conflicting
-- constraints.
--
-data (Package installed, Package source)
- => Constraints installed source reason
+data Constraints installed source reason
= Constraints
-- | Targets that we know we need. This is the set for which we
diff --git a/cabal-install/Distribution/Client/PackageIndex.hs b/cabal-install/Distribution/Client/PackageIndex.hs
index 59b8b00..bbd4a7d 100644
--- a/cabal-install/Distribution/Client/PackageIndex.hs
+++ b/cabal-install/Distribution/Client/PackageIndex.hs
@@ -78,7 +78,7 @@ import Distribution.Simple.Utils (lowercase, equating, comparing)
--
-- It can be searched effeciently by package name and version.
--
-newtype Package pkg => PackageIndex pkg = PackageIndex
+newtype PackageIndex pkg = PackageIndex
-- This index package names to all the package records matching that package
-- name case-sensitively. It includes all versions.
--
More information about the Cvs-libraries
mailing list