Fix bug with missing ~/.ghcup/ghc/ dir

This commit is contained in:
Julian Ospald 2020-04-26 22:06:00 +02:00
父節點 931080244f
當前提交 1d623723a2
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 511B62C09D50CD28
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -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