-
-
Notifications
You must be signed in to change notification settings - Fork 8
Reuse more logic from GHC regarding detecting of unused imports #68
Comments
There is a function |
@jrp2014 This particular issue is actually about a different thing. @vrom911 refactored the This issue is about refactoring another GHC function. Currently our implementation of unused imports has some duplicate code with GHC. Our code: smuggler/src/Smuggler/Plugin.hs Lines 68 to 96 in b2ddcda
Most work is done by the compiler, we only pattern-match on imports to decide whether the import is redudant or not. Here is the same code in GHC: So first we need to refactor the |
Thanks. Yes. Sorry, I should have pointed t The point at which I am stuck is grafting the result back into the ast and printing out the result (if there was a change). If I've understood In summary, can we get away without using As things stand, with GHC 8.8.3 smuggler doesn't pass its unit tests. |
I've now had a bit more of a look at this. Regrettably, the I haven't completely figured out how the I wondered whether the |
See here:
The text was updated successfully, but these errors were encountered: