@@ -44,7 +44,28 @@ import Development.IDE.GHC.Util (evalGhcEnv, hscEnv,
4444import Development.IDE.Types.Location (toNormalizedFilePath' ,
4545 uriToFilePath' )
4646import DynamicLoading (initializePlugins )
47- import GHC
47+ import DynFlags (targetPlatform )
48+ import GHC (DynFlags , ExecResult (.. ),
49+ GeneralFlag (Opt_IgnoreHpcChanges , Opt_IgnoreOptimChanges , Opt_ImplicitImportQualified ),
50+ GhcLink (LinkInMemory ),
51+ GhcMode (CompManager ),
52+ HscTarget (HscInterpreted ),
53+ LoadHowMuch (LoadAllTargets ),
54+ SuccessFlag (.. ),
55+ execLineNumber , execOptions ,
56+ execSourceFile , execStmt ,
57+ getContext ,
58+ getInteractiveDynFlags ,
59+ getSession , getSessionDynFlags ,
60+ ghcLink , ghcMode , hscTarget ,
61+ isImport , isStmt , load ,
62+ moduleName , packageFlags ,
63+ parseImportDecl , pkgDatabase ,
64+ pkgState , runDecls , setContext ,
65+ setInteractiveDynFlags ,
66+ setLogAction ,
67+ setSessionDynFlags , setTargets ,
68+ simpleImportDecl , ways )
4869import GHC.Generics (Generic )
4970import GhcMonad (modifySession )
5071import GhcPlugins (defaultLogActionHPutStrDoc ,
@@ -59,7 +80,8 @@ import Language.Haskell.LSP.Core (LspFuncs (getVirtualFileFunc))
5980import Language.Haskell.LSP.Types
6081import Language.Haskell.LSP.VFS (virtualFileText )
6182import PrelNames (pRELUDE )
62- import System.IO (Handle , IOMode (WriteMode ), hClose , openFile )
83+ import System.IO (Handle , IOMode (WriteMode ),
84+ hClose , openFile )
6385import System.IO.Extra (newTempFile )
6486
6587descriptor :: PluginId -> PluginDescriptor
0 commit comments