Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
f6072cc4
Commit
f6072cc4
authored
Jan 20, 2005
by
simonmar
Browse files
[project @ 2005-01-20 16:15:02 by simonmar]
ghc-pkg list: show hidden packages in parentheses
parent
40a36f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/utils/ghc-pkg/Main.hs
View file @
f6072cc4
...
...
@@ -387,8 +387,10 @@ listPackages db_confs = do
text
(
db_name
++
":"
)
$$
nest
4
packages
)
where
packages
=
fsep
(
punctuate
comma
(
map
pp_pkg
pkg_confs
))
pp_pkg
=
text
.
showPackageId
.
package
pp_pkg
p
|
exposed
p
=
doc
|
otherwise
=
parens
doc
where
doc
=
text
(
showPackageId
(
package
p
))
-- -----------------------------------------------------------------------------
-- Describe
...
...
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