cosmetic change.
This commit is contained in:
parent
2ce8b64284
commit
2c31fcd526
@ -17,15 +17,13 @@ import Types
|
||||
modifyOptions :: Options -> IO Options
|
||||
modifyOptions opts = found ||> notFound
|
||||
where
|
||||
found = do
|
||||
path <- findCabalDev (sandbox opts)
|
||||
return $ addPath opts path
|
||||
found = addPath opts <$> findCabalDev (sandbox opts)
|
||||
notFound = return opts
|
||||
|
||||
findCabalDev :: Maybe String -> IO FilePath
|
||||
findCabalDev (Just path) = do
|
||||
a <- doesDirectoryExist path
|
||||
if a then
|
||||
exist <- doesDirectoryExist path
|
||||
if exist then
|
||||
findConf path
|
||||
else
|
||||
findCabalDev Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user