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
3ee9ae25
Commit
3ee9ae25
authored
Dec 20, 2015
by
Andrey Mokhov
Browse files
Fix boot package constraints.
parent
341f7117
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Cabal.hs
View file @
3ee9ae25
module
Rules.Cabal
(
cabalRules
)
where
import
Expression
import
Data.Version
import
Distribution.Package
hiding
(
Package
)
import
Distribution.PackageDescription
import
Distribution.PackageDescription.Parse
import
Distribution.Verbosity
import
Expression
import
GHC
import
Package
hiding
(
library
)
import
Settings
...
...
@@ -13,7 +14,8 @@ cabalRules :: Rules ()
cabalRules
=
do
-- Cache boot package constraints (to be used in cabalArgs)
bootPackageConstraints
%>
\
out
->
do
pkgs
<-
interpretWithStage
Stage0
getPackages
bootPkgs
<-
interpretWithStage
Stage0
getPackages
let
pkgs
=
filter
(
\
p
->
p
/=
compiler
&&
isLibrary
p
)
bootPkgs
constraints
<-
forM
(
sort
pkgs
)
$
\
pkg
->
do
need
[
pkgCabalFile
pkg
]
pd
<-
liftIO
.
readPackageDescription
silent
$
pkgCabalFile
pkg
...
...
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