Skip to content
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

sharing source directory between components results in false positive unused #180

Open
dten opened this issue Oct 10, 2024 · 0 comments
Open

Comments

@dten
Copy link

dten commented Oct 10, 2024

I have a reproduction of a false positive unused

dten/weeder-false-positive-repro@a24ebf6

this commit says main: src/ActuallyUsedModule.hs:6:1: performReset

i can make the false positive go away by not sharing source directories between components

dten/weeder-false-positive-repro@baf6bd8

it might be interesting that the bad commit produces these hie files

./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/ActuallyUsedModule.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/Paths_apps.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/app/app-tmp/Main.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/app/app-tmp/ActuallyUsedModule.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/app/app-tmp/Paths_apps.hie

and the good commit produces these

./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/ActuallyUsedModule.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/Paths_apps.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/app/app-tmp/Main.hie
./apps/.stack-work/dist/x86_64-linux/ghc-9.8.2/build/app/app-tmp/Paths_apps.hie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant