Skip to content
Snippets Groups Projects
Verified Commit 1d623723 authored by Julian Ospald's avatar Julian Ospald :tea:
Browse files

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

parent 93108024
No related branches found
No related tags found
No related merge requests found
Pipeline #18603 passed with warnings
...@@ -338,7 +338,7 @@ listVersions av lt criteria = case lt of ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment