@@ -18,7 +18,6 @@ module Development.IDE.Core.RuleTypes(
1818import Control.DeepSeq
1919import Control.Lens
2020import Data.Aeson.Types (Value )
21- import Data.Binary
2221import Data.Hashable
2322import qualified Data.Map as M
2423import Data.Time.Clock.POSIX
@@ -82,7 +81,6 @@ data GetKnownTargets = GetKnownTargets
8281 deriving (Show , Generic , Eq , Ord )
8382instance Hashable GetKnownTargets
8483instance NFData GetKnownTargets
85- instance Binary GetKnownTargets
8684type instance RuleResult GetKnownTargets = KnownTargets
8785
8886-- | Convert to Core, requires TypeCheck*
@@ -92,13 +90,11 @@ data GenerateCore = GenerateCore
9290 deriving (Eq , Show , Typeable , Generic )
9391instance Hashable GenerateCore
9492instance NFData GenerateCore
95- instance Binary GenerateCore
9693
9794data GetImportMap = GetImportMap
9895 deriving (Eq , Show , Typeable , Generic )
9996instance Hashable GetImportMap
10097instance NFData GetImportMap
101- instance Binary GetImportMap
10298
10399type instance RuleResult GetImportMap = ImportMap
104100newtype ImportMap = ImportMap
@@ -287,7 +283,6 @@ instance Hashable GetModificationTime where
287283 hashWithSalt salt _ = salt
288284
289285instance NFData GetModificationTime
290- instance Binary GetModificationTime
291286
292287pattern GetModificationTime :: GetModificationTime
293288pattern GetModificationTime = GetModificationTime_ {missingFileDiagnostics= True }
@@ -310,14 +305,12 @@ data GetFileContents = GetFileContents
310305 deriving (Eq , Show , Generic )
311306instance Hashable GetFileContents
312307instance NFData GetFileContents
313- instance Binary GetFileContents
314308
315309data GetFileExists = GetFileExists
316310 deriving (Eq , Show , Typeable , Generic )
317311
318312instance NFData GetFileExists
319313instance Hashable GetFileExists
320- instance Binary GetFileExists
321314
322315data FileOfInterestStatus
323316 = OnDisk
@@ -326,13 +319,11 @@ data FileOfInterestStatus
326319 deriving (Eq , Show , Typeable , Generic )
327320instance Hashable FileOfInterestStatus
328321instance NFData FileOfInterestStatus
329- instance Binary FileOfInterestStatus
330322
331323data IsFileOfInterestResult = NotFOI | IsFOI FileOfInterestStatus
332324 deriving (Eq , Show , Typeable , Generic )
333325instance Hashable IsFileOfInterestResult
334326instance NFData IsFileOfInterestResult
335- instance Binary IsFileOfInterestResult
336327
337328type instance RuleResult IsFileOfInterest = IsFileOfInterestResult
338329
@@ -359,19 +350,16 @@ data GetParsedModule = GetParsedModule
359350 deriving (Eq , Show , Typeable , Generic )
360351instance Hashable GetParsedModule
361352instance NFData GetParsedModule
362- instance Binary GetParsedModule
363353
364354data GetParsedModuleWithComments = GetParsedModuleWithComments
365355 deriving (Eq , Show , Typeable , Generic )
366356instance Hashable GetParsedModuleWithComments
367357instance NFData GetParsedModuleWithComments
368- instance Binary GetParsedModuleWithComments
369358
370359data GetLocatedImports = GetLocatedImports
371360 deriving (Eq , Show , Typeable , Generic )
372361instance Hashable GetLocatedImports
373362instance NFData GetLocatedImports
374- instance Binary GetLocatedImports
375363
376364-- | Does this module need to be compiled?
377365type instance RuleResult NeedsCompilation = Maybe LinkableType
@@ -380,122 +368,102 @@ data NeedsCompilation = NeedsCompilation
380368 deriving (Eq , Show , Typeable , Generic )
381369instance Hashable NeedsCompilation
382370instance NFData NeedsCompilation
383- instance Binary NeedsCompilation
384371
385372data GetDependencyInformation = GetDependencyInformation
386373 deriving (Eq , Show , Typeable , Generic )
387374instance Hashable GetDependencyInformation
388375instance NFData GetDependencyInformation
389- instance Binary GetDependencyInformation
390376
391377data GetModuleGraph = GetModuleGraph
392378 deriving (Eq , Show , Typeable , Generic )
393379instance Hashable GetModuleGraph
394380instance NFData GetModuleGraph
395- instance Binary GetModuleGraph
396381
397382data ReportImportCycles = ReportImportCycles
398383 deriving (Eq , Show , Typeable , Generic )
399384instance Hashable ReportImportCycles
400385instance NFData ReportImportCycles
401- instance Binary ReportImportCycles
402386
403387data GetDependencies = GetDependencies
404388 deriving (Eq , Show , Typeable , Generic )
405389instance Hashable GetDependencies
406390instance NFData GetDependencies
407- instance Binary GetDependencies
408391
409392data TypeCheck = TypeCheck
410393 deriving (Eq , Show , Typeable , Generic )
411394instance Hashable TypeCheck
412395instance NFData TypeCheck
413- instance Binary TypeCheck
414396
415397data GetDocMap = GetDocMap
416398 deriving (Eq , Show , Typeable , Generic )
417399instance Hashable GetDocMap
418400instance NFData GetDocMap
419- instance Binary GetDocMap
420401
421402data GetHieAst = GetHieAst
422403 deriving (Eq , Show , Typeable , Generic )
423404instance Hashable GetHieAst
424405instance NFData GetHieAst
425- instance Binary GetHieAst
426406
427407data GetBindings = GetBindings
428408 deriving (Eq , Show , Typeable , Generic )
429409instance Hashable GetBindings
430410instance NFData GetBindings
431- instance Binary GetBindings
432411
433412data GhcSession = GhcSession
434413 deriving (Eq , Show , Typeable , Generic )
435414instance Hashable GhcSession
436415instance NFData GhcSession
437- instance Binary GhcSession
438416
439417data GhcSessionDeps = GhcSessionDeps deriving (Eq , Show , Typeable , Generic )
440418instance Hashable GhcSessionDeps
441419instance NFData GhcSessionDeps
442- instance Binary GhcSessionDeps
443420
444421data GetModIfaceFromDisk = GetModIfaceFromDisk
445422 deriving (Eq , Show , Typeable , Generic )
446423instance Hashable GetModIfaceFromDisk
447424instance NFData GetModIfaceFromDisk
448- instance Binary GetModIfaceFromDisk
449425
450426data GetModIfaceFromDiskAndIndex = GetModIfaceFromDiskAndIndex
451427 deriving (Eq , Show , Typeable , Generic )
452428instance Hashable GetModIfaceFromDiskAndIndex
453429instance NFData GetModIfaceFromDiskAndIndex
454- instance Binary GetModIfaceFromDiskAndIndex
455430
456431data GetModIface = GetModIface
457432 deriving (Eq , Show , Typeable , Generic )
458433instance Hashable GetModIface
459434instance NFData GetModIface
460- instance Binary GetModIface
461435
462436data GetModIfaceWithoutLinkable = GetModIfaceWithoutLinkable
463437 deriving (Eq , Show , Typeable , Generic )
464438instance Hashable GetModIfaceWithoutLinkable
465439instance NFData GetModIfaceWithoutLinkable
466- instance Binary GetModIfaceWithoutLinkable
467440
468441data IsFileOfInterest = IsFileOfInterest
469442 deriving (Eq , Show , Typeable , Generic )
470443instance Hashable IsFileOfInterest
471444instance NFData IsFileOfInterest
472- instance Binary IsFileOfInterest
473445
474446data GetModSummaryWithoutTimestamps = GetModSummaryWithoutTimestamps
475447 deriving (Eq , Show , Typeable , Generic )
476448instance Hashable GetModSummaryWithoutTimestamps
477449instance NFData GetModSummaryWithoutTimestamps
478- instance Binary GetModSummaryWithoutTimestamps
479450
480451data GetModSummary = GetModSummary
481452 deriving (Eq , Show , Typeable , Generic )
482453instance Hashable GetModSummary
483454instance NFData GetModSummary
484- instance Binary GetModSummary
485455
486456-- | Get the vscode client settings stored in the ide state
487457data GetClientSettings = GetClientSettings
488458 deriving (Eq , Show , Typeable , Generic )
489459instance Hashable GetClientSettings
490460instance NFData GetClientSettings
491- instance Binary GetClientSettings
492461
493462type instance RuleResult GetClientSettings = Hashed (Maybe Value )
494463
495464data AddWatchedFile = AddWatchedFile deriving (Eq , Show , Typeable , Generic )
496465instance Hashable AddWatchedFile
497466instance NFData AddWatchedFile
498- instance Binary AddWatchedFile
499467
500468
501469-- A local rule type to get caching. We want to use newCache, but it has
@@ -516,7 +484,6 @@ instance NFData IdeGhcSession where rnf !_ = ()
516484data GhcSessionIO = GhcSessionIO deriving (Eq , Show , Typeable , Generic )
517485instance Hashable GhcSessionIO
518486instance NFData GhcSessionIO
519- instance Binary GhcSessionIO
520487
521488makeLensesWith
522489 (lensRules & lensField .~ mappingNamer (pure . (++ " L" )))
0 commit comments