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]
|
||||
strayGHCs avTools = do
|
||||
ghcdir <- liftIO $ ghcupGHCBaseDir
|
||||
fs <- liftIO $ getDirsFiles' ghcdir
|
||||
fs <- liftIO $ liftIO $ hideErrorDef [NoSuchThing] [] $ getDirsFiles' ghcdir
|
||||
fmap catMaybes $ forM fs $ \(toFilePath -> f) -> do
|
||||
case version . decUTF8Safe $ f of
|
||||
Right v' -> do
|
||||
|
Loading…
Reference in New Issue
Block a user