Closed bergmark closed 7 years ago
I tweaked the code so that modules imported, but where nothing named from the import is used, still don't get marked as pointless. With that, all 3 modules drop off the list.
Are you happy to continue experimenting with HEAD? If that's in any way inconvenient, I'll make a release. Otherwise I'll probably wait for you to stumble into a few addition issues before I make the release.
I'll play with HEAD!
Can be seen on this aeson branch https://github.com/bos/aeson/tree/weeder-instances
Weeder warns on these test suite modules:
But
Instances
is definitely used, the import isimport Instances ()
.How about not warning on these imports, or do you think it's better to manually ignore them?
Edit:
Functions
actually exports identifiers but is only used byInstances
so that makes things slightly more inconvenient ;-)