-
Notifications
You must be signed in to change notification settings - Fork 848
Setup.hs preprocessor run too late #946
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
Comments
Is it complaining and failing, or just complaining preemptively? On Tue, Sep 8, 2015, 12:44 AM Andrew Gibiansky [email protected]
|
It is failing. See below. It is warning about modules not being listed, and then trying to build without first configuring, resulting in an error when there's no Parser.hs because it hasn't been generated yet...
|
If I run |
Did you modify the Setup.hs file after it was already configured? Can you try running |
You're right, that works fine. What's the "right" way to do this with Perhaps this is really not something |
I'm not certain to be honest, I've never tried it myself. In this case, stack is really just exposing the underlying Cabal library, so the solution should be the same for both. Ideally you'd like a way to tell Cabal "please run this command to generate this file, and rerun any time that source file has changed." On the stack side: this is somewhat related to #914. I just proposed over there a |
That seems reasonable. I can probably wrap my command in |
OK, new |
I have the following
Setup.hs
withbuild-type: Custom
:This generates a module named
Reskin.Parser
insrc/Reskin/Parser.hs
. If I don't includeReskin.Parser
inother-modules
, things work; if I do,stack
complains thatParser.hs
doesn't exist (instead of just runningSetup.hs
which generatesParser.hs
in the right place).This is using
stack
just upgraded today viastack upgrade --git
. I can get this to work only if I runcabal configure
Is this a me problem or a
stack
problem?The text was updated successfully, but these errors were encountered: