-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to rewrite imports #33
Comments
Hmmm, this isn't currently supported, but wouldn't be hard to add. I think we'd want to nail down exactly what we'd want to support, because it will inform the implementation. Some thoughts:
What do you think? |
Regarding addressing the GHC use case, there are many ways of approaching the problem. Just implementing (1) if that is quicker/easier would definitely be already helpful. In an ideal world, I'm not sure I understand (4) completely If it's just to reorder things, I don't see the point. It seems odd to index imported symbols by position/variable, as they're typically not thought of that way and the Some background on my GHC migration ideas: https://mail.haskell.org/pipermail/ghc-devs/2021-August/020099.html, although I don't have time to commit to this right now. |
This is motivated by the GHC API changes which, for a large part, change module names whilst leaving definitions unchanged.
It would be extremely useful to have the ability to change every
import A
toimport B
.This issue involves a question:
getImports
, but it's undocumented.And a feature request:
The text was updated successfully, but these errors were encountered: