File tree 2 files changed +5
-3
lines changed
ghcide/src/Development/IDE
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ instance Hashable GhcPlugins.InstalledUnitId where
51
51
hashWithSalt salt = hashWithSalt salt . installedUnitIdString
52
52
#else
53
53
instance Show InstalledUnitId where show = prettyPrint
54
+ deriving instance Ord SrcSpan
55
+ deriving instance Ord UnhelpfulSpanReason
54
56
#endif
55
57
56
58
instance NFData SB. StringBuffer where rnf = rwhnf
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import Control.Monad.Extra
13
13
import Control.Monad.IO.Class
14
14
import Control.Monad.Trans.Maybe
15
15
import Data.Aeson
16
+ import qualified Data.HashMap.Strict as Map
17
+ import qualified Data.HashSet as Set
16
18
import Data.List (find )
17
19
import Data.Maybe
18
20
import qualified Data.Text as T
@@ -33,6 +35,7 @@ import Development.IDE.Plugin.CodeAction (newImport,
33
35
import Development.IDE.Plugin.CodeAction.ExactPrint
34
36
import Development.IDE.Plugin.Completions.Logic
35
37
import Development.IDE.Plugin.Completions.Types
38
+ import Development.IDE.Types.Exports
36
39
import Development.IDE.Types.HscEnvEq (HscEnvEq (envPackageExports ),
37
40
hscEnv )
38
41
import Development.IDE.Types.Location
@@ -46,9 +49,6 @@ import qualified Language.LSP.VFS as VFS
46
49
#if MIN_VERSION_ghc(9,0,0)
47
50
import GHC.Tc.Module (tcRnImportDecls )
48
51
#else
49
- import qualified Data.HashMap.Strict as Map
50
- import qualified Data.HashSet as Set
51
- import Development.IDE.Types.Exports
52
52
import TcRnDriver (tcRnImportDecls )
53
53
#endif
54
54
You can’t perform that action at this time.
0 commit comments