Skip to content

Commit 1f84e79

Browse files
committed
Fix build
1 parent af78ae6 commit 1f84e79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ghcide/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ import Development.IDE.GHC.Compat
4343
import Development.IDE.GHC.Error
4444
import Development.IDE.GHC.ExactPrint
4545
import Development.IDE.GHC.Util (prettyPrint,
46-
printRdrName)
46+
printRdrName,
47+
unsafePrintSDoc)
4748
import Development.IDE.Plugin.CodeAction.Args
4849
import Development.IDE.Plugin.CodeAction.ExactPrint
4950
import Development.IDE.Plugin.CodeAction.PositionIndexed
@@ -1247,7 +1248,7 @@ newImport modName mSymbol mQual hiding = NewImport impStmt
12471248
symImp
12481249
| Just symbol <- mSymbol
12491250
, symOcc <- mkVarOcc $ T.unpack symbol =
1250-
" (" <> T.pack (prettyPrint (parenSymOcc symOcc $ ppr symOcc)) <> ")"
1251+
" (" <> T.pack (unsafePrintSDoc (parenSymOcc symOcc $ ppr symOcc)) <> ")"
12511252
| otherwise = ""
12521253
impStmt =
12531254
"import "

0 commit comments

Comments
 (0)