File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ import "ghc-lib" GHC hiding
72
72
RealSrcSpan ,
73
73
ms_hspp_opts )
74
74
import qualified "ghc-lib" GHC
75
+ #if MIN_GHC_API_VERSION(9,0,0)
75
76
import "ghc-lib" GHC.Types.SrcLoc (BufSpan )
77
+ #endif
76
78
import "ghc-lib-parser" GHC.LanguageExtensions (Extension )
77
79
import Language.Haskell.GhclibParserEx.GHC.Driver.Session as GhclibParserEx (readExtension )
78
80
import System.FilePath (takeFileName )
@@ -149,6 +151,9 @@ instance Pretty Log where
149
151
150
152
#ifdef HLINT_ON_GHC_LIB
151
153
-- Reimplementing this, since the one in Development.IDE.GHC.Compat isn't for ghc-lib
154
+ #if !MIN_GHC_API_VERSION(9,0,0)
155
+ type BufSpan = ()
156
+ #endif
152
157
pattern RealSrcSpan :: GHC. RealSrcSpan -> Maybe BufSpan -> GHC. SrcSpan
153
158
#if MIN_GHC_API_VERSION(9,0,0)
154
159
pattern RealSrcSpan x y = GHC. RealSrcSpan x y
You can’t perform that action at this time.
0 commit comments