Backport #10483: fix cabal install --program-suffix/prefix
(fix #10290 and #10476)
#10511
+231
−2
cabal install --program-suffix/prefix
(fix #10290 and #10476)
#10511