You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You've imported a number of modules, and have written a lot of code with unqualified names. You want to import a new module but you know there will be a number name clashes so you want to switch your current usage of names to be qualified.
12
+
13
+
It would be nice if you could change
14
+
```
15
+
import Blah
16
+
```
17
+
to
18
+
```
19
+
import Blah as Bloo
20
+
```
21
+
then magically qualify all the previous names imported from `Blah` with `Bloo`. After doing that you could then change
22
+
```
23
+
import Blah as Bloo
24
+
```
25
+
to
26
+
```
27
+
import qualified Blah as Bloo
28
+
```
29
+
and import your the new module using names from it without worry.
30
+
31
+
Well, now you can...
32
+
5
33
## Usage
6
34
7
35
1. Put cursor over the import declaration you want to qualify names from.
@@ -14,6 +42,9 @@
14
42
- If the import declaration has an explicit import list then the plugin will qualify only names on the list.
15
43
- If the import declaration has an explicit hiding list then the plugin will qualify names from the imported module that are not on the list.
16
44
45
+
## Future possibilities
46
+
- It may be possible to use the LSP rename functionality to ask for a name so that we don't have to do the `as Alias` dance.
0 commit comments