From 3d487d0e337ee1e954187c201469e6cb08408b53 Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Mon, 9 Apr 2012 20:43:08 +0100
Subject: [PATCH] Ignore global package conf when using cabal-dev.
---
CabalDev.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CabalDev.hs b/CabalDev.hs
index f6deb0b..a76485c 100644
--- a/CabalDev.hs
+++ b/CabalDev.hs
@@ -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"