Skip to content

Commit ea80b66

Browse files
committed
compatibility with GHC 8.8
1 parent 68d94bf commit ea80b66

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/Ide/Plugin/Eval.hs

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,28 @@ import Development.IDE.GHC.Util (evalGhcEnv, hscEnv,
4444
import Development.IDE.Types.Location (toNormalizedFilePath',
4545
uriToFilePath')
4646
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)
4869
import GHC.Generics (Generic)
4970
import GhcMonad (modifySession)
5071
import GhcPlugins (defaultLogActionHPutStrDoc,
@@ -59,7 +80,8 @@ import Language.Haskell.LSP.Core (LspFuncs (getVirtualFileFunc))
5980
import Language.Haskell.LSP.Types
6081
import Language.Haskell.LSP.VFS (virtualFileText)
6182
import PrelNames (pRELUDE)
62-
import System.IO (Handle, IOMode (WriteMode), hClose, openFile)
83+
import System.IO (Handle, IOMode (WriteMode),
84+
hClose, openFile)
6385
import System.IO.Extra (newTempFile)
6486

6587
descriptor :: PluginId -> PluginDescriptor

0 commit comments

Comments
 (0)