File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ghcide/src/Development/IDE/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ import Development.IDE.GHC.Compat
43
43
import Development.IDE.GHC.Error
44
44
import Development.IDE.GHC.ExactPrint
45
45
import Development.IDE.GHC.Util (prettyPrint ,
46
- printRdrName )
46
+ printRdrName ,
47
+ unsafePrintSDoc )
47
48
import Development.IDE.Plugin.CodeAction.Args
48
49
import Development.IDE.Plugin.CodeAction.ExactPrint
49
50
import Development.IDE.Plugin.CodeAction.PositionIndexed
@@ -1247,7 +1248,7 @@ newImport modName mSymbol mQual hiding = NewImport impStmt
1247
1248
symImp
1248
1249
| Just symbol <- mSymbol
1249
1250
, symOcc <- mkVarOcc $ T. unpack symbol =
1250
- " (" <> T. pack (prettyPrint (parenSymOcc symOcc $ ppr symOcc)) <> " )"
1251
+ " (" <> T. pack (unsafePrintSDoc (parenSymOcc symOcc $ ppr symOcc)) <> " )"
1251
1252
| otherwise = " "
1252
1253
impStmt =
1253
1254
" import "
You can’t perform that action at this time.
0 commit comments