File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import qualified Data.Text as T
24
24
import GHC.Generics
25
25
26
26
import GHC
27
+ import GHC.Utils.Outputable (withPprStyle , defaultUserStyle )
27
28
28
29
import Development.IDE.GHC.Compat
29
30
import Development.IDE.GHC.Orphans ()
@@ -35,7 +36,7 @@ type DocMap = NameEnv SpanDoc
35
36
type KindMap = NameEnv TyThing
36
37
37
38
showGhc :: Outputable a => a -> T. Text
38
- showGhc = showSD . ppr
39
+ showGhc = showSD . withPprStyle defaultUserStyle . ppr
39
40
40
41
showSD :: SDoc -> T. Text
41
42
showSD = T. pack . unsafePrintSDoc
@@ -62,7 +63,7 @@ safeTyThingId _ = Nothing
62
63
-- Possible documentation for an element in the code
63
64
data SpanDoc
64
65
= SpanDocString HsDocString SpanDocUris
65
- | SpanDocText [T. Text ] SpanDocUris
66
+ | SpanDocText [T. Text ] SpanDocUris
66
67
deriving stock (Eq , Show , Generic )
67
68
deriving anyclass NFData
68
69
You can’t perform that action at this time.
0 commit comments