Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore .ghci files #336

Closed
fendor opened this issue Mar 6, 2022 · 0 comments · Fixed by #337
Closed

Ignore .ghci files #336

fendor opened this issue Mar 6, 2022 · 0 comments · Fixed by #337

Comments

@fendor
Copy link
Collaborator

fendor commented Mar 6, 2022

If there is a .ghci file with the following contents

:set +t

then the command:

> cabal v2-exec ghc -v0 -- -package-env=- -e "System.Environment.getExecutablePath >>= putStrLn"
/home/hugin/.ghcup/ghc/8.10.7/lib/ghc-8.10.7/bin/ghc
it :: ()

adds unexpected output.

Solution: ignore .ghci files via -ignore-dot-ghci
Also, add a regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant