File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
ghcide/src/Development/IDE
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ import Development.IDE.GHC.Compat (NameCache,
132
132
knownKeyNames ,
133
133
mkSplitUniqSupply )
134
134
#if !MIN_VERSION_ghc(9,3,0)
135
- import Development.IDE.GHC.Compat ( upNameCache )
135
+ import Development.IDE.GHC.Compat (upNameCache )
136
136
#endif
137
137
import Development.IDE.GHC.Orphans ()
138
138
import Development.IDE.Graph hiding (ShakeValue )
Original file line number Diff line number Diff line change @@ -49,10 +49,11 @@ safeTyThingId (AConLike (RealDataCon dataCon)) = Just (dataConWrapId dataCon)
49
49
safeTyThingId _ = Nothing
50
50
51
51
-- Possible documentation for an element in the code
52
- data SpanDoc
53
52
#if MIN_VERSION_ghc(9,3,0)
53
+ data SpanDoc
54
54
= SpanDocString [HsDocString ] SpanDocUris
55
55
#else
56
+ data SpanDoc
56
57
= SpanDocString HsDocString SpanDocUris
57
58
#endif
58
59
| SpanDocText [T. Text ] SpanDocUris
Original file line number Diff line number Diff line change 1
1
module Development.IDE.Plugin.CodeAction.Util where
2
2
3
- #if MIN_VERSION_ghc(9,2,0)
4
- import GHC.Utils.Outputable
5
- #else
6
- import Development.IDE.GHC.Util
7
- import Development.IDE.GHC.Compat.Util
8
- import Development.IDE.GHC.Compat
9
- #endif
10
3
import Data.Data (Data )
11
4
import qualified Data.Unique as U
12
5
import Debug.Trace
@@ -18,6 +11,13 @@ import Text.Printf
18
11
import Development.IDE.GHC.Dump (showAstDataHtml )
19
12
import Data.Time.Clock.POSIX (POSIXTime , getCurrentTime ,
20
13
utcTimeToPOSIXSeconds )
14
+ #if MIN_VERSION_ghc(9,2,0)
15
+ import GHC.Utils.Outputable
16
+ #else
17
+ import Development.IDE.GHC.Util
18
+ import Development.IDE.GHC.Compat.Util
19
+ import Development.IDE.GHC.Compat
20
+ #endif
21
21
--------------------------------------------------------------------------------
22
22
-- Tracing exactprint terms
23
23
You can’t perform that action at this time.
0 commit comments