File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 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
5151 hashWithSalt salt = hashWithSalt salt . installedUnitIdString
5252#else
5353instance Show InstalledUnitId where show = prettyPrint
54+ deriving instance Ord SrcSpan
55+ deriving instance Ord UnhelpfulSpanReason
5456#endif
5557
5658instance NFData SB. StringBuffer where rnf = rwhnf
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import Control.Monad.Extra
1313import Control.Monad.IO.Class
1414import Control.Monad.Trans.Maybe
1515import Data.Aeson
16+ import qualified Data.HashMap.Strict as Map
17+ import qualified Data.HashSet as Set
1618import Data.List (find )
1719import Data.Maybe
1820import qualified Data.Text as T
@@ -33,6 +35,7 @@ import Development.IDE.Plugin.CodeAction (newImport,
3335import Development.IDE.Plugin.CodeAction.ExactPrint
3436import Development.IDE.Plugin.Completions.Logic
3537import Development.IDE.Plugin.Completions.Types
38+ import Development.IDE.Types.Exports
3639import Development.IDE.Types.HscEnvEq (HscEnvEq (envPackageExports ),
3740 hscEnv )
3841import Development.IDE.Types.Location
@@ -46,9 +49,6 @@ import qualified Language.LSP.VFS as VFS
4649#if MIN_VERSION_ghc(9,0,0)
4750import GHC.Tc.Module (tcRnImportDecls )
4851#else
49- import qualified Data.HashMap.Strict as Map
50- import qualified Data.HashSet as Set
51- import Development.IDE.Types.Exports
5252import TcRnDriver (tcRnImportDecls )
5353#endif
5454
You can’t perform that action at this time.
0 commit comments