![cabal server files cabal server files](http://4.bp.blogspot.com/-DswTn0YArgk/Tz-Iz_2pBGI/AAAAAAAABPQ/FAUO1ZkBjuk/s1600/ATI_Cabal_online_with_1.jpg)
when a GenericPackageDescription cannot be parsed, turn it into a Nothing (or something with more information, providing more details about the minimum required version). cabal file" + ParseOk _ d -> return (Just $! d) + ParseFailed (FromString e _) + | "This package requires at least Cabal version" `isPrefixOf` e + -> return Nothing + _ -> interror "failed to parse. ParseOk _ d -> return d - _ -> interror "failed to parse. readPackageDescription :: ByteString -> IO GenericPackageDescription + readPackageDescription :: ByteString -> IO (Maybe GenericPackageDescription)Ĭase parsePackageDescription. _ -> interror "unexpected tar entry type" PackageId GenericPackageDescription FilePath -541,13 +542,16 packageListFromCache mkPkg hnd Cache mode = accum mempty cacheEntries NormalPackage PackageId GenericPackageDescription ByteString BlockNo + NormalPackage PackageId (Maybe GenericPackageDescription) ByteString BlockNo | An index entry is either a normal package, or a local build tree reference. Import -254,7 +254,7 whenCacheOutOfDate index action = do ( Version(Version), intersectVersionRanges ) ( ParseResult(.) ) + ( ParseResult(.), PError(FromString) ) ( getInstalledPackages, getInstalledPackagesMonitorFiles ) a/cabal-install/Distribution/Client/IndexUtils.hs +++ b/cabal-install/Distribution/Client/IndexUtils.hs -56,7 +56,7 import I've looked at the code in D.C.IndexUtils, and one way to go about this is to do something along the lines of cabal files means if we don't actively support the declared cabal-version). cabal contents (note that semantics may change depending on the cabal-version, so we really cannot know what a.
#Cabal server files how to#
Everything beyond that would require the parser to know how to parse and interpret the. cabal files we can parse but have a too-new cabal-version, ignore them as wellįor packages that are newer than cabal-install supports, we can only know the package name & version, and possibly the specified cabal-version. which the parser currently fails with an "internal error") cabal files in the index we can't parse (i.e.
#Cabal server files install#
To upgrade, run: cabal install cabal-install Note: there is a new version of cabal-install available. Skipping download: Local and remote files match. Downloading the latest package list from