Skip to content

Commit 7c85ccb

Browse files
committed
Fix ghc 9.2
1 parent a4ab02a commit 7c85ccb

File tree

1 file changed

+5
-0
lines changed
  • plugins/hls-refactor-plugin/src/Development/IDE/Plugin/Plugins

1 file changed

+5
-0
lines changed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/Plugins/AddArgument.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ import Language.Haskell.GHC.ExactPrint (TransformT (..),
3232
noAnnSrcSpanDP1,
3333
runTransformT)
3434
import Language.LSP.Protocol.Types
35+
#if !MIN_VERSION_ghc(9,3,0)
36+
import GHC (TrailingAnn (..))
37+
import GHC.Hs (IsUnicodeSyntax (..))
38+
import Language.Haskell.GHC.ExactPrint.Transform (d1)
39+
#endif
3540

3641
-- When GHC tells us that a variable is not bound, it will tell us either:
3742
-- - there is an unbound variable with a given type

0 commit comments

Comments
 (0)