Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
54a8e157
Commit
54a8e157
authored
Jul 14, 2016
by
Andrey Mokhov
Browse files
Switch from condLibrary to condLibraries in Cabal
See
#269
.
parent
88b495c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Cabal.hs
View file @
54a8e157
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment