Skip to content

Add weeder#6779

Merged
phadej merged 1 commit intohaskell:masterfrom
phadej:weeder
May 11, 2020
Merged

Add weeder#6779
phadej merged 1 commit intohaskell:masterfrom
phadej:weeder

Conversation

@phadej
Copy link
Copy Markdown
Collaborator

@phadej phadej commented May 11, 2020

make weeder

to run weeder.

There are plenty of false positives. But still, useful. Thanks @ocharles for the tool.

@ocharles
Copy link
Copy Markdown
Contributor

How exciting! If you didn't know, you can add those false positives to your Weeder config. I'd also be interested to know which of those are not truly dead, as those would be bugs in Weeder. Sounds like I can grab this branch and have a play myself to get that, though. Maybe a ZuriHac project!

@phadej
Copy link
Copy Markdown
Collaborator Author

phadej commented May 11, 2020

Some stuff is used in tests, or is there just for completeness.

@phadej phadej merged commit 6736cc2 into haskell:master May 11, 2020
@phadej phadej deleted the weeder branch May 11, 2020 19:17
@ocharles
Copy link
Copy Markdown
Contributor

Weeder should pick all test uses up as test suites produce a Main.main root (but you need to build tests with hie files, of course)

@phadej
Copy link
Copy Markdown
Collaborator Author

phadej commented May 12, 2020

Can one list everything on hackage-security as root? (It's a local library, as it depends on Cabal, so it's is built).

@ocharles
Copy link
Copy Markdown
Contributor

Currently a root is a regular expression matching symbol names, and that only mentions module names and variable names at the moment. Perhaps everything there is under a common module prefix? E.g., would ^Hackage.Security..* work?

@phadej phadej added this to the 3.4.0.0-rc1 milestone Jul 10, 2020
@phadej phadej mentioned this pull request Jul 10, 2020
@philderbeast philderbeast mentioned this pull request Dec 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants