-
Notifications
You must be signed in to change notification settings - Fork 81
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
Why not always generate Cabal macros? #520
Comments
Thank you for this interesting question!
We think that CPP version macros version are not useful in a bazel repository because the point of this kind of repository is to control all the version of all the software used in the build process, so there is no need for special case depending on a specific version, because the user already control the version of the dependencies. There is an exception for package imported from outside (from hackage for example) which are out of control of the repository owner and may need to use CPP version macros, but these packages have a Others possible designs:
Out of curiosity, do you have a use-case for which you'll need Cabal-style CPP macros without |
Thanks for the context. I'll do a bit of reading and get back to you if I have anything constructive 😅 I am using Hazel with a large collection of custom hand-written BUILD files for upstream dependencies. They all need to have their It feels like |
|
Is there anything actionable in this PR? I believe there were some further internal discussions on the use of cabal macros. |
I'm closing. Feel free to reopen if the current design in a blocker for your workflow. |
Currently Cabal-style CPP macros are not generated unless
version
is set inhaskell_library
.I am wondering if it would be reasonable to always generate them. We usually only care about the versions of other libraries, rather than one's own version.
The text was updated successfully, but these errors were encountered: