File tree 2 files changed +4
-7
lines changed
ghcide/src/Development/IDE
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ module Development.IDE.GHC.Compat(
117
117
LogActionCompat ,
118
118
logActionCompat ,
119
119
120
+ pprSigmaType ,
121
+
120
122
module GHC ,
121
123
module DynFlags ,
122
124
initializePlugins ,
@@ -139,12 +141,14 @@ import qualified Outputable as Out
139
141
import StringBuffer
140
142
#if MIN_GHC_API_VERSION(9,0,1)
141
143
import qualified Data.Set as S
144
+ import GHC.Core.TyCo.Ppr (pprSigmaType )
142
145
import GHC.Core.TyCo.Rep (Scaled , scaledThing )
143
146
import GHC.Iface.Load
144
147
import GHC.Types.Unique.Set (emptyUniqSet )
145
148
import qualified SrcLoc
146
149
#else
147
150
import Module (InstalledUnitId , toInstalledUnitId )
151
+ import TcType (pprSigmaType )
148
152
#endif
149
153
import Compat.HieAst (enrichHie , mkHieFile )
150
154
import Compat.HieBin
Original file line number Diff line number Diff line change 1
- {-# LANGUAGE CPP #-}
2
1
{-# LANGUAGE DeriveAnyClass #-}
3
2
{-# LANGUAGE OverloadedLabels #-}
4
3
{-# LANGUAGE TypeFamilies #-}
5
- #include "ghc-api-version.h"
6
4
7
5
-- | An HLS plugin to provide code lenses for type signatures
8
6
module Development.IDE.Plugin.TypeLenses (
@@ -80,11 +78,6 @@ import PatSyn (patSynName)
80
78
import TcEnv (tcInitTidyEnv )
81
79
import TcRnMonad (initTcWithGbl )
82
80
import TcRnTypes (TcGblEnv (.. ))
83
- #if MIN_GHC_API_VERSION(9,0,1)
84
- import GHC.Core.TyCo.Ppr (pprSigmaType )
85
- #else
86
- import TcType (pprSigmaType )
87
- #endif
88
81
import Text.Regex.TDFA ((=~) , (=~~) )
89
82
90
83
typeLensCommandId :: T. Text
You can’t perform that action at this time.
0 commit comments