-
Notifications
You must be signed in to change notification settings - Fork 19
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
Mafia option to build a single sub-component of a project. #193
Comments
I wouldn't mind taking a stab at this feature. Has anyone started looking into it yet? |
@ggranberry Sorry, have done this a couple of times, your questions seem to make me see issues I have missed. @tmcgilchrist @ggranberry Isn't this what mafia already does, it is just a layer of cabal build. You can always call |
Currently mafia needs to be run in a directory with a cabal file. If that cabal file contains multiple targets (eg a library, one or more test suites, a benchmark and a number of executables) then it is possible to run However, if I have say a git repo containing directories So the question is, do we hack mafia to support this now and I don't think we should. Instead, I think we should wait just a bit until support for I'm actually hacking a bit on https://github.com/erikd/jenga this weekend and hoping to get it reading |
@erikd Yeah, I've been using cabal-new for all my projects. I agree that waiting for cabal 2.2 support is probably the best action. I'll leave this one alone for now. |
Motivation: I have a project which has a library component and a pre-processor which generates some code, in this case it dumps out the generated code for a bunch of lenses. The generator needs to get built independently of the library.
Solution: Have an option to do an equivalent to
cabal build generate
which only builds thegenerate
target in the cabal file.For now my work around is to use a combination of
The text was updated successfully, but these errors were encountered: