cosmetic change.

This commit is contained in:
Kazu Yamamoto 2012-04-10 09:43:02 +09:00
parent 2ce8b64284
commit 2c31fcd526

View File

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