minor fix.
This commit is contained in:
parent
8fbdfac52b
commit
eedca795e1
@ -37,9 +37,10 @@ addPath orig_opts path = do
|
|||||||
searchIt :: [FilePath] -> IO FilePath
|
searchIt :: [FilePath] -> IO FilePath
|
||||||
searchIt [] = throwIO $ userError "Not found"
|
searchIt [] = throwIO $ userError "Not found"
|
||||||
searchIt path = do
|
searchIt path = do
|
||||||
a <- doesDirectoryExist (mpath path)
|
let cabalDir = mpath path
|
||||||
if a then
|
exist <- doesDirectoryExist cabalDir
|
||||||
findConf (mpath path)
|
if exist then
|
||||||
|
findConf cabalDir
|
||||||
else
|
else
|
||||||
searchIt $ init path
|
searchIt $ init path
|
||||||
where
|
where
|
||||||
|
Loading…
Reference in New Issue
Block a user