[commit: ghc] wip/nfs-locking: Drop Text.PrettyPrint dependency (4afc5a4)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 01:09:51 UTC 2017


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

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/4afc5a4ddf3511bfefc3abcaa15144844536d8b6/ghc

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

commit 4afc5a4ddf3511bfefc3abcaa15144844536d8b6
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Oct 3 09:45:34 2016 +0100

    Drop Text.PrettyPrint dependency


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

4afc5a4ddf3511bfefc3abcaa15144844536d8b6
 src/Rules/Cabal.hs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Rules/Cabal.hs b/src/Rules/Cabal.hs
index e12ab33..69cdd51 100644
--- a/src/Rules/Cabal.hs
+++ b/src/Rules/Cabal.hs
@@ -5,7 +5,6 @@ import Distribution.PackageDescription
 import Distribution.PackageDescription.Parse
 import Distribution.Text
 import Distribution.Verbosity
-import Text.PrettyPrint
 
 import Base
 import Expression
@@ -23,7 +22,7 @@ cabalRules = do
             need [pkgCabalFile pkg]
             pd <- liftIO . readPackageDescription silent $ pkgCabalFile pkg
             let identifier          = package . packageDescription $ pd
-                version             = render . disp . pkgVersion $ identifier
+                version             = display . pkgVersion $ identifier
             return $ unPackageName (DP.pkgName identifier) ++ " == " ++ version
         writeFileChanged out . unlines $ constraints
 



More information about the ghc-commits mailing list