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
2424import GHC.Generics
2525
2626import GHC
27+ import GHC.Utils.Outputable (withPprStyle , defaultUserStyle )
2728
2829import Development.IDE.GHC.Compat
2930import Development.IDE.GHC.Orphans ()
@@ -35,7 +36,7 @@ type DocMap = NameEnv SpanDoc
3536type KindMap = NameEnv TyThing
3637
3738showGhc :: Outputable a => a -> T. Text
38- showGhc = showSD . ppr
39+ showGhc = showSD . withPprStyle defaultUserStyle . ppr
3940
4041showSD :: SDoc -> T. Text
4142showSD = T. pack . unsafePrintSDoc
@@ -62,7 +63,7 @@ safeTyThingId _ = Nothing
6263-- Possible documentation for an element in the code
6364data 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
You can’t perform that action at this time.
0 commit comments