@@ -269,7 +269,7 @@ withGhciScript packageInfos pathBase f = do
269269 ]
270270 dotGhci = unlines
271271 -- TODO: Shell escape
272− [ ":set -pgmF " <> selfExe <> " -optF " <> preprocessorIdentifier <> " " <> unwords (map (("-optF " <>) . _cabalPackageInfo_packageRoot) packageInfos)
272+ [ ":set -F -pgmF " <> selfExe <> " -optF " <> preprocessorIdentifier <> " " <> unwords (map (("-optF " <>) . makeRelative pathBase . _cabalPackageInfo_packageFile) packageInfos)
273273 , ":set -i" <> intercalate ":" (packageInfos >>= rootedSourceDirs)
274274 , if null modulesToLoad then "" else ":load " <> unwords modulesToLoad
275275 , "import qualified Obelisk.Run"
@@ -311,8 +311,7 @@ runGhcid root chdirToRoot dotGhci packages mcmd =
311311 where
312312 opts =
313313 [ "-W"
314− --TODO: The decision of whether to use -fwarn-redundant-constraints should probably be made by the user
315− , "--command='ghci -Wall -ignore-dot-ghci -fwarn-redundant-constraints " <> makeBaseGhciOptions dotGhci <> "' "
314+ , "--command='ghci -ignore-dot-ghci " <> makeBaseGhciOptions dotGhci <> "' "
316315 , "--reload=config"
317316 , "--outputfile=ghcid-output.txt"
318317 ] <> testCmd