Ignore global package conf when using cabal-dev.

This commit is contained in:
Paolo Capriotti 2012-04-09 20:43:08 +01:00
parent b0cabae366
commit 3d487d0e33
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ findCabalDev Nothing = getCurrentDirectory >>= searchIt . splitPath
addPath :: Options -> String -> Options
addPath orig_opts path = do
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 [] = throwIO $ userError "Not found"