|
11 | 11 | module Development.IDE.Core.Rules(
|
12 | 12 | -- * Types
|
13 | 13 | IdeState, GetParsedModule(..), TransitiveDependencies(..),
|
14 |
| - Priority(..), GhcSessionIO(..), GetClientSettings(..), |
| 14 | + GhcSessionIO(..), GetClientSettings(..), |
15 | 15 | -- * Functions
|
16 |
| - priorityTypeCheck, |
17 |
| - priorityGenerateCore, |
18 |
| - priorityFilesOfInterest, |
19 | 16 | runAction,
|
20 | 17 | toIdeResult,
|
21 | 18 | defineNoFile,
|
@@ -250,15 +247,6 @@ getParsedModuleWithComments = use GetParsedModuleWithComments
|
250 | 247 | -- Rules
|
251 | 248 | -- These typically go from key to value and are oracles.
|
252 | 249 |
|
253 |
| -priorityTypeCheck :: Priority |
254 |
| -priorityTypeCheck = Priority 0 |
255 |
| - |
256 |
| -priorityGenerateCore :: Priority |
257 |
| -priorityGenerateCore = Priority (-1) |
258 |
| - |
259 |
| -priorityFilesOfInterest :: Priority |
260 |
| -priorityFilesOfInterest = Priority (-2) |
261 |
| - |
262 | 250 | -- | WARNING:
|
263 | 251 | -- We currently parse the module both with and without Opt_Haddock, and
|
264 | 252 | -- return the one with Haddocks if it -- succeeds. However, this may not work
|
@@ -682,7 +670,6 @@ typeCheckRuleDefinition
|
682 | 670 | -> ParsedModule
|
683 | 671 | -> Action (IdeResult TcModuleResult)
|
684 | 672 | typeCheckRuleDefinition hsc pm = do
|
685 |
| - setPriority priorityTypeCheck |
686 | 673 | IdeOptions { optDefer = defer } <- getIdeOptions
|
687 | 674 |
|
688 | 675 | unlift <- askUnliftIO
|
@@ -936,7 +923,6 @@ generateCore :: RunSimplifier -> NormalizedFilePath -> Action (IdeResult ModGuts
|
936 | 923 | generateCore runSimplifier file = do
|
937 | 924 | packageState <- hscEnv <$> use_ GhcSessionDeps file
|
938 | 925 | tm <- use_ TypeCheck file
|
939 |
| - setPriority priorityGenerateCore |
940 | 926 | liftIO $ compileModule runSimplifier packageState (tmrModSummary tm) (tmrTypechecked tm)
|
941 | 927 |
|
942 | 928 | generateCoreRule :: Recorder (WithPriority Log) -> Rules ()
|
|
0 commit comments