@@ -272,7 +272,7 @@ withGhciScript packageInfos pathBase f = do
273 dotGhci = unlines
273 dotGhci = unlines
274 -- TODO: Shell escape
274 -- 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)
276 , ":set -i" <> intercalate ":" (packageInfos >>= rootedSourceDirs)
276 , ":set -i" <> intercalate ":" (packageInfos >>= rootedSourceDirs)
277 , if null modulesToLoad then "" else ":load " <> unwords modulesToLoad
277 , if null modulesToLoad then "" else ":load " <> unwords modulesToLoad
278 , "import qualified Obelisk.Run"
278 , "import qualified Obelisk.Run"
@@ -314,8 +314,7 @@ runGhcid root chdirToRoot dotGhci packages mcmd =
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 <> "' "
319 , "--reload=config"
318 , "--reload=config"
320 , "--outputfile=ghcid-output.txt"
319 , "--outputfile=ghcid-output.txt"
321 ] <> testCmd
320 ] <> testCmd