Skip to content

Commit 7da3601

Browse files
committed
Revert incorrect change to hlint code
1 parent b632ac2 commit 7da3601

File tree

1 file changed

+3
-3
lines changed
  • plugins/hls-hlint-plugin/src/Ide/Plugin

1 file changed

+3
-3
lines changed

plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
{-# OPTIONS_GHC -Wno-orphans #-}
1414

1515
#ifdef HLINT_ON_GHC_LIB
16-
#define MIN_VERSION_ghc(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
16+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
1717
#else
18-
#define MIN_VERSION_ghc(x,y,z) MIN_VERSION_ghc(x,y,z)
18+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
1919
#endif
2020

2121
module Ide.Plugin.Hlint
@@ -103,7 +103,7 @@ import System.Environment (setEnv,
103103
-- ---------------------------------------------------------------------
104104

105105
pattern OldRealSrcSpan :: RealSrcSpan -> SrcSpan
106-
#if MIN_VERSION_ghc(9,0,0)
106+
#if MIN_GHC_API_VERSION(9,0,0)
107107
pattern OldRealSrcSpan span <- RealSrcSpan span _
108108
#else
109109
pattern OldRealSrcSpan span <- RealSrcSpan span

0 commit comments

Comments
 (0)