Commit 9076143a authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Improve 'cabal info pkg' message when there is nothing to install

  "All requested packages already installed. Nothing to do."
rather than:
  "These packages would be installed:\n"
followed by ... nothing.
parent ef899c7b
......@@ -36,6 +36,9 @@ info cfg comp conf deps
"The requested packages cannot be installed, because of missing dependencies:\n"
++ showDependencies missing
Right [] -> notice verbosity $
"All requested packages already installed. Nothing to do."
Right pkgs -> notice verbosity $
"These packages would be installed:\n"
++ unlines [showPackageId (pkgInfoId pkg) | (pkg,_) <- pkgs]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment