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

How can I use --flag with repl command? #2986

Closed
jeiea opened this issue Feb 7, 2017 · 6 comments
Closed

How can I use --flag with repl command? #2986

jeiea opened this issue Feb 7, 2017 · 6 comments

Comments

@jeiea
Copy link

@jeiea jeiea commented Feb 7, 2017

I checked stack repl --flag package:flag works on stack v1.1.0, but now it seems that v1.3.2 reject it as invalid flag.
What's an alternative to this?

@decentral1se
Copy link
Member

@decentral1se decentral1se commented Feb 7, 2017

Seems to have moved over to stack build?

@jeiea
Copy link
Author

@jeiea jeiea commented Feb 7, 2017

Then, should I use `stack build --flag PACKAGE:FLAG --exec "ghci Main.hs"?
Is there any reason of moving?

@borsboom
Copy link
Contributor

@borsboom borsboom commented Feb 8, 2017

There was a significant refactoring of build arguments a while back (in order to support including build arguments in stack.yaml) and it's possible this was removed from stack repl by accident.

@jeiea
Copy link
Author

@jeiea jeiea commented Feb 9, 2017

I've just bisected and found the commit 3347bcb. But I can't determine whether it is intended.

@decentral1se
Copy link
Member

@decentral1se decentral1se commented Feb 9, 2017

/cc @mgsloan?

mgsloan added a commit that referenced this issue Feb 12, 2017
@mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Feb 12, 2017

Hmm, yes, that was an unintended consequence of that change. Most of the things in BuildOptsCLI aren't useful for ghci, but --flag and --ghc-options are, so I've added just those ones back in.

@mgsloan mgsloan closed this Feb 12, 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
4 participants