ndmitchell / weeder

Detect dead exports or package imports
BSD 3-Clause "New" or "Revised" License
124 stars 8 forks source link

Ignore template-haskell generated output #44

Open ndmitchell opened 6 years ago

ndmitchell commented 6 years ago

At the moment if you use the lens generator to generate prisms/lenses etc from TH, you get a lot of complaints about unused pieces.

One potential solution would be to enable adding ghc-options: -ddump-splices and exclude things generated by TH, if the files exist. Downside is people won't do this by default, so it's very much an opt-in experience.

ndmitchell commented 4 years ago

Weeder 2.0 is being developed at https://github.com/ocharles/weeder so I suggest you go see if that fixes your issues.