Skip to content

Commit

Permalink
Only reset GHCI include paths once
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Nov 2, 2015
1 parent 31779a1 commit 1bf5156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Stack/Ghci.hs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ ghci GhciOpts{..} = do
defaultEnvSettings
(fromMaybe (compilerExeName wc) ghciGhcCommand)
("--interactive" :
-- This initial "-i" resets the include directories to not
-- include CWD.
"-i" :
odir <> pkgopts <> ghciArgs <>
["-ghci-script=" <> fp]))
(removeFile scriptPath))
Expand Down
3 changes: 0 additions & 3 deletions src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ generateBuildInfoOpts sourceMap installedMap mcabalmacros cabalDir distDir omitP
isGhc _ = False
extOpts = map (("-X" ++) . display) . usedExtensions
srcOpts =
-- This initial "-i" resets the include directories to not
-- include CWD.
"-i" :
map
(("-i" <>) . toFilePath)
((if null (hsSourceDirs b) then [cabalDir] else []) <>
Expand Down

0 comments on commit 1bf5156

Please sign in to comment.