Commit fac77b7
committed
feat: Add import suggestion for missing in scope constructor
For example, `deriving instance Generic (Sum Int)`, but it should work
for other deriving which indirectly requires a complete access to the
type constructor.
```
Can't make a derived instance of ‘Generic (Sum Int)’:
The data constructors of ‘Sum’ are not all in scope
so you cannot derive an instance for it
```1 parent 44f2d67 commit fac77b7
File tree
2 files changed
+28
-0
lines changed- plugins/hls-refactor-plugin
- src/Development/IDE/Plugin
- test
2 files changed
+28
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1840 | 1840 | | |
1841 | 1841 | | |
1842 | 1842 | | |
| 1843 | + | |
| 1844 | + | |
1843 | 1845 | | |
1844 | 1846 | | |
1845 | 1847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
1896 | 1897 | | |
1897 | 1898 | | |
1898 | 1899 | | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1899 | 1925 | | |
1900 | 1926 | | |
1901 | 1927 | | |
| |||
0 commit comments