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

Comments

Projects
None yet
4 participants
@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?

@lwm

This comment has been minimized.

Member

lwm commented Feb 7, 2017

Seems to have moved over to stack build?

@jeiea

This comment has been minimized.

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

This comment has been minimized.

Contributor

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

This comment has been minimized.

jeiea commented Feb 9, 2017

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

@lwm

This comment has been minimized.

Member

lwm commented Feb 9, 2017

/cc @mgsloan?

mgsloan added a commit that referenced this issue Feb 12, 2017

@mgsloan

This comment has been minimized.

Collaborator

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