File tree 1 file changed +2
-2
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1864,9 +1864,9 @@ extractNotInScopeName x
1864
1864
-- hint changes in the future
1865
1865
-- - Next regex will account for polymorphic types, which appears as `HasField
1866
1866
-- "foo" (Bar Int)...`, e.g. see the parenthesis
1867
- | Just [_module, name] <- matchRegexUnifySpaces x " No instance for ‘ .*HasField \" [^\" ]+\" ([^ (.]+\\ .)*([^ (.]+).*’ "
1867
+ | Just [_module, name] <- matchRegexUnifySpaces x " No instance for [‘(] .*HasField \" [^\" ]+\" ([^ (.]+\\ .)*([^ (.]+).*[’)] "
1868
1868
= Just $ NotInScopeThing name
1869
- | Just [_module, name] <- matchRegexUnifySpaces x " No instance for ‘ .*HasField \" [^\" ]+\" \\ (([^ .]+\\ .)*([^ .]+)[^)]*\\ ).*’ "
1869
+ | Just [_module, name] <- matchRegexUnifySpaces x " No instance for [‘(] .*HasField \" [^\" ]+\" \\ (([^ .]+\\ .)*([^ .]+)[^)]*\\ ).*[’)] "
1870
1870
= Just $ NotInScopeThing name
1871
1871
| Just [name] <- matchRegexUnifySpaces x " ot in scope: \\ (([^‘ ]+)\\ )"
1872
1872
= Just $ NotInScopeThing name
You can’t perform that action at this time.
0 commit comments