Skip to content

Commit f9d9759

Browse files
committed
Fix ghc 9.6
1 parent 7c85ccb commit f9d9759

File tree

2 files changed

+5
-1
lines changed
  • hls-graph/src/Development/IDE/Graph/Internal
  • plugins/hls-rename-plugin/src/Ide/Plugin

2 files changed

+5
-1
lines changed

hls-graph/src/Development/IDE/Graph/Internal/Types.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
module Development.IDE.Graph.Internal.Types where
99

10-
import Control.Applicative
1110
import Control.Monad.Catch
1211
import Control.Monad.IO.Class
1312
import Control.Monad.Trans.Reader

plugins/hls-rename-plugin/src/Ide/Plugin/Rename.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ import Language.LSP.Protocol.Message
4949
import Language.LSP.Protocol.Types
5050
import Language.LSP.Server
5151

52+
#if MIN_VERSION_ghc(9,5,0)
53+
import Control.Monad.IO.Class (MonadIO, liftIO)
54+
import Control.Monad.Trans.Class (lift)
55+
#endif
56+
5257
instance Hashable (Mod a) where hash n = hash (unMod n)
5358

5459
descriptor :: Recorder (WithPriority E.Log) -> PluginId -> PluginDescriptor IdeState

0 commit comments

Comments
 (0)