simplify checkIfToolInstalled
for Cabal
This commit is contained in:
parent
7a6a119829
commit
d60f58cf43
@ -476,12 +476,7 @@ checkIfToolInstalled tool ver = do
|
||||
Dirs { binDir } <- getDirs
|
||||
|
||||
case tool of
|
||||
Cabal -> do
|
||||
v <- cabalInstalled ver
|
||||
liftIO $ handleIO (\_ -> pure False)
|
||||
$ fmap (\x -> v && x)
|
||||
$ pathIsLink (binDir </> "cabal" <> exeExt)
|
||||
|
||||
Cabal -> cabalInstalled ver
|
||||
_ -> pure False
|
||||
|
||||
-- | Install an unpacked cabal distribution.Symbol
|
||||
|
Loading…
Reference in New Issue
Block a user