File tree 3 files changed +14
-6
lines changed
hls-graph/src/Development/IDE/Graph/Internal
hls-refactor-plugin/src/Development/IDE/Plugin/Plugins
hls-rename-plugin/src/Ide/Plugin
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ import System.IO.Unsafe
36
36
import System.Time.Extra (Seconds )
37
37
import UnliftIO (MonadUnliftIO )
38
38
39
+ #if !MIN_VERSION_base(4,18,0)
40
+ import Control.Applicative (liftA2 )
41
+ #endif
39
42
40
43
unwrapDynamic :: forall a . Typeable a => Dynamic -> a
41
44
unwrapDynamic x = fromMaybe (error msg) $ fromDynamic x
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE CPP #-}
2
2
module Development.IDE.Plugin.Plugins.AddArgument (plugin ) where
3
3
4
- #if MIN_VERSION_ghc(9,4,0)
5
- import Development.IDE.GHC.ExactPrint (epl )
6
- import GHC.Parser.Annotation (TokenLocation (.. ))
7
- #endif
8
4
import Control.Monad (join )
9
5
import Control.Monad.Trans.Class (lift )
10
6
import Data.Bifunctor (Bifunctor (.. ))
@@ -32,12 +28,18 @@ import Language.Haskell.GHC.ExactPrint (TransformT (..),
32
28
noAnnSrcSpanDP1 ,
33
29
runTransformT )
34
30
import Language.LSP.Protocol.Types
35
- #if !MIN_VERSION_ghc(9,3,0)
31
+
32
+ #if !MIN_VERSION_ghc(9,4,0)
36
33
import GHC (TrailingAnn (.. ))
37
34
import GHC.Hs (IsUnicodeSyntax (.. ))
38
35
import Language.Haskell.GHC.ExactPrint.Transform (d1 )
39
36
#endif
40
37
38
+ #if MIN_VERSION_ghc(9,4,0)
39
+ import Development.IDE.GHC.ExactPrint (epl )
40
+ import GHC.Parser.Annotation (TokenLocation (.. ))
41
+ #endif
42
+
41
43
-- When GHC tells us that a variable is not bound, it will tell us either:
42
44
-- - there is an unbound variable with a given type
43
45
-- - there is an unbound variable (GHC provides no type suggestion)
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ module Ide.Plugin.Rename (descriptor, E.Log) where
10
10
import Compat.HieTypes
11
11
import Control.Lens ((^.) )
12
12
import Control.Monad
13
- import Control.Monad.Except
13
+ import Control.Monad.Except (ExceptT , MonadError ,
14
+ throwError )
15
+ import Control.Monad.IO.Class (MonadIO , liftIO )
16
+ import Control.Monad.Trans.Class (lift )
14
17
import Data.Bifunctor (first )
15
18
import Data.Generics
16
19
import Data.Hashable
You can’t perform that action at this time.
0 commit comments