Commit a931066d authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Adapt to Cabal library API changes

Fix #282.
parent ae1fa1ac
......@@ -35,8 +35,7 @@ cabalRules = do
else do
need [pkgCabalFile pkg]
pd <- liftIO . readPackageDescription silent $ pkgCabalFile pkg
-- TODO: Support more than one Cabal library per package.
let depsLib = collectDeps . fmap snd . listToMaybe $ condLibraries pd
let depsLib = collectDeps $ condLibrary pd
depsExes = map (collectDeps . Just . snd) $ condExecutables pd
deps = concat $ depsLib : depsExes
depNames = [ name | Dependency (DP.PackageName name) _ <- deps ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment