Skip to content

Commit fd799b2

Browse files
committed
Move reverse operation
1 parent 6154aab commit fd799b2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ showOption qpn@(Q _pp pn) (POption i linkedTo) =
293293
showOptions :: QPN -> [POption] -> String
294294
showOptions _ [] = "unexpected empty list of versions"
295295
showOptions q [x] = showOption q x
296-
showOptions q xs = showQPN q ++ "; " ++ (L.intercalate ", "
296+
showOptions q xs = showQPN q ++ "; " ++ (L.intercalate ", " $ reverse
297297
[if isJust linkedTo
298298
then showOption q x
299299
else showI i -- Don't show the package, just the version
300-
| x@(POption i linkedTo) <- reverse xs
300+
| x@(POption i linkedTo) <- xs
301301
])
302302

303303
showGR :: QGoalReason -> String

0 commit comments

Comments
 (0)