Skip to content

Commit 546d982

Browse files
committed
refactor plugin: fix regex for extracting import suggestions
1 parent 908db38 commit 546d982

File tree

1 file changed

+2
-2
lines changed
  • plugins/hls-refactor-plugin/src/Development/IDE/Plugin

1 file changed

+2
-2
lines changed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,9 @@ suggestExtendImport exportsMap (L _ HsModule {hsmodImports}) Diagnostic{_range=_
931931
| Just [binding, mod, srcspan] <-
932932
matchRegexUnifySpaces _message
933933
#if MIN_VERSION_ghc(9,7,0)
934-
"Add ‘([^’]*)’ to the import list in the import of ‘([^’]*)’ *\\(at (.*)\\)."
934+
"Add ‘([^’]*)’ to the import list in the import of ‘([^’]*)’ *\\(at (.*)\\)\\."
935935
#else
936-
"Perhaps you want to add ‘([^’]*)’ to the import list in the import of ‘([^’]*)’ *\\((.*)\\)."
936+
"Perhaps you want to add ‘([^’]*)’ to the import list in the import of ‘([^’]*)’ *\\((.*)\\)\\."
937937
#endif
938938
= suggestions hsmodImports binding mod srcspan
939939
| Just (binding, mod_srcspan) <-

0 commit comments

Comments
 (0)