[commit: packages/Cabal] ghc-head: Make the fields of 'SandboxPackageInfo' strict. (8a9ef89)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:26:35 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=8a9ef890e0a2bd68e1d8c30821bb373e3ee9bb92

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

commit 8a9ef890e0a2bd68e1d8c30821bb373e3ee9bb92
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Tue Jun 4 14:35:55 2013 +0200

    Make the fields of 'SandboxPackageInfo' strict.


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

8a9ef890e0a2bd68e1d8c30821bb373e3ee9bb92
 cabal-install/Distribution/Client/Sandbox/Types.hs |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cabal-install/Distribution/Client/Sandbox/Types.hs b/cabal-install/Distribution/Client/Sandbox/Types.hs
index 17f0d46..fa111a2 100644
--- a/cabal-install/Distribution/Client/Sandbox/Types.hs
+++ b/cabal-install/Distribution/Client/Sandbox/Types.hs
@@ -43,19 +43,19 @@ whenUsingSandbox (UseSandbox sandboxDir) act = act sandboxDir
 -- | Data about the packages installed in the sandbox that is passed from
 -- 'reinstallAddSourceDeps' to the solver.
 data SandboxPackageInfo = SandboxPackageInfo {
-  modifiedAddSourceDependencies  :: [SourcePackage],
+  modifiedAddSourceDependencies :: ![SourcePackage],
   -- ^ Modified add-source deps that we want to reinstall. These are guaranteed
   -- to be already installed in the sandbox.
 
-  otherAddSourceDependencies     :: [SourcePackage],
+  otherAddSourceDependencies    :: ![SourcePackage],
   -- ^ Remaining add-source deps. Some of these may be not installed in the
   -- sandbox.
 
-  otherInstalledSandboxPackages :: InstalledPackageIndex.PackageIndex,
+  otherInstalledSandboxPackages :: !InstalledPackageIndex.PackageIndex,
   -- ^ All packages installed in the sandbox. Intersection with
   -- 'modifiedAddSourceDependencies' and/or 'otherAddSourceDependencies' can be
   -- non-empty.
 
-  allAddSourceDependencies :: S.Set FilePath
+  allAddSourceDependencies      :: !(S.Set FilePath)
   -- ^ A set of paths to all add-source dependencies, for convenience.
   }





More information about the ghc-commits mailing list