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
Confusing handling of Cabal internal libraries #51
Comments
The problem "module not compiled" is the root of all the issues. The problem is always that https://github.com/ndmitchell/weeder/blob/master/src/Cabal.hs#L52 guesses a set of possible locations the |
Weeder 2.0 is being developed at https://github.com/ocharles/weeder so I suggest you go see if that fixes your issues. |
Resolve ndmitchell#51. Special thanks to @rvl for test case ndmitchell#49, which is included here.
Resolve ndmitchell#51. Special thanks to @rvl for test case ndmitchell#49, which is included here.
Our project uses multiple packages as sub-libraries, one of which has multiple internal libraries that are re-exported.
When we run
weeder
on the package with multiple internal libraries, we get the following output:weeder
reports as weeds that the re-exported modules were not compiled, however these modules need to be re-exported from the package's main library as the interface to be consumed by other packages in our code base.Additionally,
weeder
reports the internal libraries which are dependencies of other build targets as redundant, however they are require to build the build target and cannot be removed.I'm hoping to get your input on whether or not these weed reports are expected, they seem to be erroneous from my perspective in this use case.
The text was updated successfully, but these errors were encountered: