@@ -272,7 +272,7 @@ withGhciScript packageInfos pathBase f = do
272272 ]
273273 dotGhci = unlines
274274 -- TODO: Shell escape
275− [ ":set -pgmF " <> selfExe <> " -optF " <> preprocessorIdentifier <> " " <> unwords (map (("-optF " <>) . _cabalPackageInfo_packageRoot) packageInfos)
275+ [ ":set -F -pgmF " <> selfExe <> " -optF " <> preprocessorIdentifier <> " " <> unwords (map (("-optF " <>) . makeRelative pathBase . _cabalPackageInfo_packageFile) packageInfos)
276276 , ":set -i" <> intercalate ":" (packageInfos >>= rootedSourceDirs)
277277 , if null modulesToLoad then "" else ":load " <> unwords modulesToLoad
278278 , "import qualified Obelisk.Run"
@@ -314,8 +314,7 @@ runGhcid root chdirToRoot dotGhci packages mcmd =
314314 where
315315 opts =
316316 [ "-W"
317− --TODO: The decision of whether to use -fwarn-redundant-constraints should probably be made by the user
318− , "--command='ghci -Wall -ignore-dot-ghci -fwarn-redundant-constraints " <> makeBaseGhciOptions dotGhci <> "' "
317+ , "--command='ghci -ignore-dot-ghci " <> makeBaseGhciOptions dotGhci <> "' "
319318 , "--reload=config"
320319 , "--outputfile=ghcid-output.txt"
321320 ] <> testCmd