Fix bug with missing ~/.ghcup/ghc/ dir
This commit is contained in:
parent
931080244f
commit
1d623723a2
@ -338,7 +338,7 @@ listVersions av lt criteria = case lt of
|
|||||||
-> m [ListResult]
|
-> m [ListResult]
|
||||||
strayGHCs avTools = do
|
strayGHCs avTools = do
|
||||||
ghcdir <- liftIO $ ghcupGHCBaseDir
|
ghcdir <- liftIO $ ghcupGHCBaseDir
|
||||||
fs <- liftIO $ getDirsFiles' ghcdir
|
fs <- liftIO $ liftIO $ hideErrorDef [NoSuchThing] [] $ getDirsFiles' ghcdir
|
||||||
fmap catMaybes $ forM fs $ \(toFilePath -> f) -> do
|
fmap catMaybes $ forM fs $ \(toFilePath -> f) -> do
|
||||||
case version . decUTF8Safe $ f of
|
case version . decUTF8Safe $ f of
|
||||||
Right v' -> do
|
Right v' -> do
|
||||||
|
Loading…
Reference in New Issue
Block a user