Skip to content

Commit 9cbc585

Browse files
committed
Unify ppr style
1 parent 3c52743 commit 9cbc585

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ghcide/src/Development/IDE/Spans/Common.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import qualified Data.Text as T
2424
import GHC.Generics
2525

2626
import GHC
27+
import GHC.Utils.Outputable (withPprStyle, defaultUserStyle)
2728

2829
import Development.IDE.GHC.Compat
2930
import Development.IDE.GHC.Orphans ()
@@ -35,7 +36,7 @@ type DocMap = NameEnv SpanDoc
3536
type KindMap = NameEnv TyThing
3637

3738
showGhc :: Outputable a => a -> T.Text
38-
showGhc = showSD . ppr
39+
showGhc = showSD . withPprStyle defaultUserStyle . ppr
3940

4041
showSD :: SDoc -> T.Text
4142
showSD = T.pack . unsafePrintSDoc
@@ -62,7 +63,7 @@ safeTyThingId _ = Nothing
6263
-- Possible documentation for an element in the code
6364
data SpanDoc
6465
= SpanDocString HsDocString SpanDocUris
65-
| SpanDocText [T.Text] SpanDocUris
66+
| SpanDocText [T.Text] SpanDocUris
6667
deriving stock (Eq, Show, Generic)
6768
deriving anyclass NFData
6869

0 commit comments

Comments
 (0)