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