@@ -44,7 +44,28 @@ import Development.IDE.GHC.Util (evalGhcEnv, hscEnv,
44
44
import Development.IDE.Types.Location (toNormalizedFilePath' ,
45
45
uriToFilePath' )
46
46
import 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 )
48
69
import GHC.Generics (Generic )
49
70
import GhcMonad (modifySession )
50
71
import GhcPlugins (defaultLogActionHPutStrDoc ,
@@ -59,7 +80,8 @@ import Language.Haskell.LSP.Core (LspFuncs (getVirtualFileFunc))
59
80
import Language.Haskell.LSP.Types
60
81
import Language.Haskell.LSP.VFS (virtualFileText )
61
82
import PrelNames (pRELUDE )
62
- import System.IO (Handle , IOMode (WriteMode ), hClose , openFile )
83
+ import System.IO (Handle , IOMode (WriteMode ),
84
+ hClose , openFile )
63
85
import System.IO.Extra (newTempFile )
64
86
65
87
descriptor :: PluginId -> PluginDescriptor
0 commit comments