Skip to content

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

Open
@dten

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions