Skip to content

Commit

Permalink
Update outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jan 26, 2017
1 parent c97bd1a commit b27aa25
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cabal-install/Distribution/Client/Outdated.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Outdated
Expand Down Expand Up @@ -28,8 +29,6 @@ import Distribution.Client.Sandbox.PackageEnvironment
import Distribution.Package (PackageName, packageVersion)
import Distribution.PackageDescription (buildDepends)
import Distribution.PackageDescription.Configuration (finalizePD)
import Distribution.PackageDescription.Parse
(readPackageDescription)
import Distribution.Simple.Compiler (Compiler, compilerInfo)
import Distribution.Simple.Setup (fromFlagOrDefault)
import Distribution.Simple.Utils
Expand All @@ -43,6 +42,13 @@ import Distribution.Verbosity (Verbosity, silent)
import Distribution.Version
(Version, LowerBound(..), UpperBound(..)
,asVersionIntervals, majorBoundVersion)
#ifdef CABAL_PARSEC
import Distribution.PackageDescription.Parsec
(readGenericPackageDescription)
#else
import Distribution.PackageDescription.Parse
(readGenericPackageDescription)
#endif

import qualified Data.Set as S
import System.Directory (getCurrentDirectory)
Expand Down Expand Up @@ -134,7 +140,7 @@ depsFromPkgDesc :: Verbosity -> Compiler -> Platform -> IO [Dependency]
depsFromPkgDesc verbosity comp platform = do
cwd <- getCurrentDirectory
path <- tryFindPackageDesc cwd
gpd <- readPackageDescription verbosity path
gpd <- readGenericPackageDescription verbosity path
let cinfo = compilerInfo comp
epd = finalizePD [] (ComponentRequestedSpec True True)
(const True) platform cinfo [] gpd
Expand Down

0 comments on commit b27aa25

Please sign in to comment.