-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support cabal projects #28
Comments
What's the reason for wanting to avoid If you do want to use Cabal, that's possible, but requires passing some extra flags to Cabal, then modifying Weeder to find the suitable output files. If there was a volunteer to do that I can give a few pointers. |
I just don't use |
Ah, that makes a lot more sense. To a first approximation weeder needs to find the list of cabal files (easy if you aren't using stack), and from there find all the |
I also would like to use nix/cabal with weeder. The CI setup I have does not rely on stack, so that's not an option. If I can figure out how to do this, I'll do my best to submit a patch. If you know of any resources that document how I might do this, please let me know. |
Is it possible you meant "-ddump-hi" as documented here? |
Yep, I definitely meant If you want to integrate it the file to replace/augment is https://github.com/ndmitchell/weeder/blob/master/src/Weeder.hs#L37-L42 which calls things in https://github.com/ndmitchell/weeder/blob/master/src/Stack.hs. Basically find the project, make sure it has |
Thanks a lot, I appreciate the guidance! |
if you put this inside your haskell package overrides, it will modify the configureFlags that get passed to cabal, and then you will probably have dump-hi files in every output path |
If you demand that anyone who has built with Cabal must have already passed |
input-output-hk/cardano-sl#3400 |
So what I found about generating *.dump-hi files using cabal new-build.
|
Weeder 2.0 is being developed at https://github.com/ocharles/weeder so I suggest you go see if that fixes your issues. |
This is a very nice tool, and I wish I could use it without stack.
The text was updated successfully, but these errors were encountered: