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
e908a4a2
Commit
e908a4a2
authored
Jan 25, 2017
by
Andrey Mokhov
Browse files
Fix breakage due to changes in Cabal API
parent
ebee16a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Cabal.hs
View file @
e908a4a2
...
...
@@ -4,6 +4,7 @@ import Distribution.Package as DP
import
Distribution.PackageDescription
import
Distribution.PackageDescription.Parse
import
Distribution.Text
import
Distribution.Types.CondTree
import
Distribution.Types.Dependency
import
Distribution.Verbosity
...
...
@@ -49,4 +50,4 @@ collectDeps :: Maybe (CondTree v [Dependency] a) -> [Dependency]
collectDeps
Nothing
=
[]
collectDeps
(
Just
(
CondNode
_
deps
ifs
))
=
deps
++
concatMap
f
ifs
where
f
(
_
,
t
,
mt
)
=
collectDeps
(
Just
t
)
++
collectDeps
mt
f
(
CondBranch
_
t
mt
)
=
collectDeps
(
Just
t
)
++
collectDeps
mt
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