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
198abb4f
Commit
198abb4f
authored
Mar 16, 2017
by
Andrey Mokhov
Browse files
Rename readPackageDescription to readGenericPackageDescription to fix the warning
parent
30708a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Cabal.hs
View file @
198abb4f
...
...
@@ -23,7 +23,7 @@ cabalRules = do
let
pkgs
=
filter
(
\
p
->
p
/=
compiler
&&
isLibrary
p
)
bootPkgs
constraints
<-
forM
(
sort
pkgs
)
$
\
pkg
->
do
need
[
pkgCabalFile
pkg
]
pd
<-
liftIO
.
readPackageDescription
silent
$
pkgCabalFile
pkg
pd
<-
liftIO
.
read
Generic
PackageDescription
silent
$
pkgCabalFile
pkg
let
identifier
=
package
.
packageDescription
$
pd
version
=
display
.
pkgVersion
$
identifier
return
$
unPackageName
(
DP
.
pkgName
identifier
)
++
" == "
++
version
...
...
@@ -37,7 +37,7 @@ cabalRules = do
if
not
exists
then
return
$
pkgNameString
pkg
else
do
need
[
pkgCabalFile
pkg
]
pd
<-
liftIO
.
readPackageDescription
silent
$
pkgCabalFile
pkg
pd
<-
liftIO
.
read
Generic
PackageDescription
silent
$
pkgCabalFile
pkg
let
depsLib
=
collectDeps
$
condLibrary
pd
depsExes
=
map
(
collectDeps
.
Just
.
snd
)
$
condExecutables
pd
deps
=
concat
$
depsLib
:
depsExes
...
...
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