Ignore global package conf when using cabal-dev.
This commit is contained in:
parent
b0cabae366
commit
3d487d0e33
@ -34,7 +34,7 @@ findCabalDev Nothing = getCurrentDirectory >>= searchIt . splitPath
|
|||||||
addPath :: Options -> String -> Options
|
addPath :: Options -> String -> Options
|
||||||
addPath orig_opts path = do
|
addPath orig_opts path = do
|
||||||
let orig_ghcopt = ghcOpts orig_opts
|
let orig_ghcopt = ghcOpts orig_opts
|
||||||
orig_opts { ghcOpts = orig_ghcopt ++ ["-package-conf", path] }
|
orig_opts { ghcOpts = orig_ghcopt ++ ["-package-conf", path, "-no-user-package-conf"] }
|
||||||
|
|
||||||
searchIt :: [FilePath] -> IO FilePath
|
searchIt :: [FilePath] -> IO FilePath
|
||||||
searchIt [] = throwIO $ userError "Not found"
|
searchIt [] = throwIO $ userError "Not found"
|
||||||
|
Loading…
Reference in New Issue
Block a user