Commit 56d4b83d authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Fix reporting of installed program versions in cabal list

We do not know if programs are installed or not so report
unknown rather than saying it is not installed.
parent 425139e6
......@@ -171,7 +171,8 @@ showPackageSummaryInfo pkginfo =
Just pkg -> disp (packageVersion pkg)
, text "Latest version installed:" <+>
case latestInstalled pkginfo of
Nothing -> text "[ Not installed ]"
Nothing | hasLib pkginfo -> text "[ Not installed ]"
| otherwise -> text "[ Unknown ]"
Just pkg -> disp (packageVersion pkg)
, maybeShow (homepage pkginfo) "Homepage:" text
, text "License: " <+> text (show (license pkginfo))
......
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