ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

Fix AlreadyInstalled error message

Open daniel-shuy opened this issue 1 year ago • 0 comments

AlreadyInstalled error message currently lists cabal regardless of which tool is already installed (e.g. ghc/cabal/hls/stack), e.g.

[ Warn  ] ghc-9.2.4 is already installed; if you really want to reinstall it, you may want to run 'ghcup install cabal --force 9.2.4'
[ Warn  ] cabal-3.6.2.0 is already installed; if you really want to reinstall it, you may want to run 'ghcup install cabal --force 3.6.2.0'
[ Error ] Both installation and setting the tool failed. Install error was: hls-1.8.0.0 is already installed; if you really want to reinstall it, you may want to run 'ghcup install cabal --force 1.8.0.0'
[ Warn  ] stack-2.9.1 is already installed; if you really want to reinstall it, you may want to run 'ghcup install cabal --force 2.9.1'

daniel-shuy avatar Oct 14 '22 04:10 daniel-shuy