[commit: Cabal] master: s/parseDescription/parsePackageDescription/. (98126f7)

Ian Lynagh igloo at earth.li
Fri Jun 24 01:45:25 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/98126f70a3ae5cbfc5c44f935cf687878a7a216a

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

commit 98126f70a3ae5cbfc5c44f935cf687878a7a216a
Author: bjorn <bjorn at bringert.net>
Date:   Sat Oct 6 08:37:57 2007 +0000

    s/parseDescription/parsePackageDescription/.

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

 .../src/Network/Hackage/CabalInstall/Config.hs     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cabal-install/src/Network/Hackage/CabalInstall/Config.hs b/cabal-install/src/Network/Hackage/CabalInstall/Config.hs
index d3b4832..72a15b8 100644
--- a/cabal-install/src/Network/Hackage/CabalInstall/Config.hs
+++ b/cabal-install/src/Network/Hackage/CabalInstall/Config.hs
@@ -40,7 +40,7 @@ import System.IO.Unsafe
 import Distribution.Package (PackageIdentifier(..), showPackageId)
 import Distribution.PackageDescription (GenericPackageDescription(..)
                                        , PackageDescription(..)
-                                       , parseDescription, ParseResult(..))
+                                       , parsePackageDescription, ParseResult(..))
 import Distribution.Version (Dependency, showVersion)
 import Distribution.Verbosity
 import System.FilePath ((</>), takeExtension, (<.>))
@@ -124,7 +124,7 @@ parseRepoIndex :: Repo -> ByteString -> [PkgInfo]
 parseRepoIndex repo s =
     do (name, content) <- readTarArchive s
        if takeExtension name == ".cabal"
-         then case parseDescription (BS.unpack content) of
+         then case parsePackageDescription (BS.unpack content) of
                     ParseOk _ descr -> return $ PkgInfo { 
                                                          pkgRepo = repo,
                                                          pkgDesc = descr





More information about the Cvs-libraries mailing list