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

GHCI error message is unclear when passing option-like settings to GHCI #3342

Closed
mgsloan opened this issue Aug 11, 2017 · 1 comment
Closed

GHCI error message is unclear when passing option-like settings to GHCI #3342

mgsloan opened this issue Aug 11, 2017 · 1 comment

Comments

@mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Aug 11, 2017

From https://stackoverflow.com/questions/45640896/how-to-pass-stack-ghci-rts-options

$ stack ghci -- Main.hs +RTS -M20M
Cannot use 'stack ghci' with both file targets and build targets

Issue is that it is doing the check for having both file and package targets without parsing the build targets. Instead, would be good to fail with a target parse error + a suggestion to use --ghci-options

mgsloan added a commit that referenced this issue Aug 11, 2017
+ move --ghci-options to the end of stack ghci arguments so that +RTS can be
used without a closing -RTS
@mgsloan
Copy link
Contributor Author

@mgsloan mgsloan commented Aug 11, 2017

Fixed!

@mgsloan mgsloan closed this Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.