Commit 54a8e157 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Switch from condLibrary to condLibraries in Cabal

See #269.
parent 88b495c3
......@@ -35,7 +35,8 @@ cabalRules = do
else do
need [pkgCabalFile pkg]
pd <- liftIO . readPackageDescription silent $ pkgCabalFile pkg
let depsLib = collectDeps $ condLibrary pd
-- TODO: Support more than one Cabal library per package.
let depsLib = collectDeps . fmap snd . listToMaybe $ condLibraries 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