Skip to content

Commit 8031abd

Browse files
committed
Update 'and other versions' message
1 parent 37259c0 commit 8031abd

File tree

1 file changed

+1
-1
lines changed
  • cabal-install-solver/src/Distribution/Solver/Modular

1 file changed

+1
-1
lines changed

cabal-install-solver/src/Distribution/Solver/Modular/Message.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ showOptions verb q xs = showQPN q ++ "; " ++ (L.intercalate ", "
292292
then showOption q x
293293
else showI i -- Don't show the package, just the version
294294
| x@(POption i linkedTo) <- if verb >= verbose then xs else take 1 xs
295-
] ++ if verb < verbose && length xs >= 1 then " and other versions" else "")
295+
] ++ if verb < verbose && length xs > 1 then " and " ++ show (length xs - 1) ++" other versions" else "")
296296

297297
showGR :: QGoalReason -> String
298298
showGR UserGoal = " (user goal)"

0 commit comments

Comments
 (0)