@@ -18,7 +18,6 @@ module Development.IDE.Core.RuleTypes(
18
18
import Control.DeepSeq
19
19
import Control.Lens
20
20
import Data.Aeson.Types (Value )
21
- import Data.Binary
22
21
import Data.Hashable
23
22
import qualified Data.Map as M
24
23
import Data.Time.Clock.POSIX
@@ -82,7 +81,6 @@ data GetKnownTargets = GetKnownTargets
82
81
deriving (Show , Generic , Eq , Ord )
83
82
instance Hashable GetKnownTargets
84
83
instance NFData GetKnownTargets
85
- instance Binary GetKnownTargets
86
84
type instance RuleResult GetKnownTargets = KnownTargets
87
85
88
86
-- | Convert to Core, requires TypeCheck*
@@ -92,13 +90,11 @@ data GenerateCore = GenerateCore
92
90
deriving (Eq , Show , Typeable , Generic )
93
91
instance Hashable GenerateCore
94
92
instance NFData GenerateCore
95
- instance Binary GenerateCore
96
93
97
94
data GetImportMap = GetImportMap
98
95
deriving (Eq , Show , Typeable , Generic )
99
96
instance Hashable GetImportMap
100
97
instance NFData GetImportMap
101
- instance Binary GetImportMap
102
98
103
99
type instance RuleResult GetImportMap = ImportMap
104
100
newtype ImportMap = ImportMap
@@ -287,7 +283,6 @@ instance Hashable GetModificationTime where
287
283
hashWithSalt salt _ = salt
288
284
289
285
instance NFData GetModificationTime
290
- instance Binary GetModificationTime
291
286
292
287
pattern GetModificationTime :: GetModificationTime
293
288
pattern GetModificationTime = GetModificationTime_ {missingFileDiagnostics= True }
@@ -310,14 +305,12 @@ data GetFileContents = GetFileContents
310
305
deriving (Eq , Show , Generic )
311
306
instance Hashable GetFileContents
312
307
instance NFData GetFileContents
313
- instance Binary GetFileContents
314
308
315
309
data GetFileExists = GetFileExists
316
310
deriving (Eq , Show , Typeable , Generic )
317
311
318
312
instance NFData GetFileExists
319
313
instance Hashable GetFileExists
320
- instance Binary GetFileExists
321
314
322
315
data FileOfInterestStatus
323
316
= OnDisk
@@ -326,13 +319,11 @@ data FileOfInterestStatus
326
319
deriving (Eq , Show , Typeable , Generic )
327
320
instance Hashable FileOfInterestStatus
328
321
instance NFData FileOfInterestStatus
329
- instance Binary FileOfInterestStatus
330
322
331
323
data IsFileOfInterestResult = NotFOI | IsFOI FileOfInterestStatus
332
324
deriving (Eq , Show , Typeable , Generic )
333
325
instance Hashable IsFileOfInterestResult
334
326
instance NFData IsFileOfInterestResult
335
- instance Binary IsFileOfInterestResult
336
327
337
328
type instance RuleResult IsFileOfInterest = IsFileOfInterestResult
338
329
@@ -359,19 +350,16 @@ data GetParsedModule = GetParsedModule
359
350
deriving (Eq , Show , Typeable , Generic )
360
351
instance Hashable GetParsedModule
361
352
instance NFData GetParsedModule
362
- instance Binary GetParsedModule
363
353
364
354
data GetParsedModuleWithComments = GetParsedModuleWithComments
365
355
deriving (Eq , Show , Typeable , Generic )
366
356
instance Hashable GetParsedModuleWithComments
367
357
instance NFData GetParsedModuleWithComments
368
- instance Binary GetParsedModuleWithComments
369
358
370
359
data GetLocatedImports = GetLocatedImports
371
360
deriving (Eq , Show , Typeable , Generic )
372
361
instance Hashable GetLocatedImports
373
362
instance NFData GetLocatedImports
374
- instance Binary GetLocatedImports
375
363
376
364
-- | Does this module need to be compiled?
377
365
type instance RuleResult NeedsCompilation = Maybe LinkableType
@@ -380,122 +368,102 @@ data NeedsCompilation = NeedsCompilation
380
368
deriving (Eq , Show , Typeable , Generic )
381
369
instance Hashable NeedsCompilation
382
370
instance NFData NeedsCompilation
383
- instance Binary NeedsCompilation
384
371
385
372
data GetDependencyInformation = GetDependencyInformation
386
373
deriving (Eq , Show , Typeable , Generic )
387
374
instance Hashable GetDependencyInformation
388
375
instance NFData GetDependencyInformation
389
- instance Binary GetDependencyInformation
390
376
391
377
data GetModuleGraph = GetModuleGraph
392
378
deriving (Eq , Show , Typeable , Generic )
393
379
instance Hashable GetModuleGraph
394
380
instance NFData GetModuleGraph
395
- instance Binary GetModuleGraph
396
381
397
382
data ReportImportCycles = ReportImportCycles
398
383
deriving (Eq , Show , Typeable , Generic )
399
384
instance Hashable ReportImportCycles
400
385
instance NFData ReportImportCycles
401
- instance Binary ReportImportCycles
402
386
403
387
data GetDependencies = GetDependencies
404
388
deriving (Eq , Show , Typeable , Generic )
405
389
instance Hashable GetDependencies
406
390
instance NFData GetDependencies
407
- instance Binary GetDependencies
408
391
409
392
data TypeCheck = TypeCheck
410
393
deriving (Eq , Show , Typeable , Generic )
411
394
instance Hashable TypeCheck
412
395
instance NFData TypeCheck
413
- instance Binary TypeCheck
414
396
415
397
data GetDocMap = GetDocMap
416
398
deriving (Eq , Show , Typeable , Generic )
417
399
instance Hashable GetDocMap
418
400
instance NFData GetDocMap
419
- instance Binary GetDocMap
420
401
421
402
data GetHieAst = GetHieAst
422
403
deriving (Eq , Show , Typeable , Generic )
423
404
instance Hashable GetHieAst
424
405
instance NFData GetHieAst
425
- instance Binary GetHieAst
426
406
427
407
data GetBindings = GetBindings
428
408
deriving (Eq , Show , Typeable , Generic )
429
409
instance Hashable GetBindings
430
410
instance NFData GetBindings
431
- instance Binary GetBindings
432
411
433
412
data GhcSession = GhcSession
434
413
deriving (Eq , Show , Typeable , Generic )
435
414
instance Hashable GhcSession
436
415
instance NFData GhcSession
437
- instance Binary GhcSession
438
416
439
417
data GhcSessionDeps = GhcSessionDeps deriving (Eq , Show , Typeable , Generic )
440
418
instance Hashable GhcSessionDeps
441
419
instance NFData GhcSessionDeps
442
- instance Binary GhcSessionDeps
443
420
444
421
data GetModIfaceFromDisk = GetModIfaceFromDisk
445
422
deriving (Eq , Show , Typeable , Generic )
446
423
instance Hashable GetModIfaceFromDisk
447
424
instance NFData GetModIfaceFromDisk
448
- instance Binary GetModIfaceFromDisk
449
425
450
426
data GetModIfaceFromDiskAndIndex = GetModIfaceFromDiskAndIndex
451
427
deriving (Eq , Show , Typeable , Generic )
452
428
instance Hashable GetModIfaceFromDiskAndIndex
453
429
instance NFData GetModIfaceFromDiskAndIndex
454
- instance Binary GetModIfaceFromDiskAndIndex
455
430
456
431
data GetModIface = GetModIface
457
432
deriving (Eq , Show , Typeable , Generic )
458
433
instance Hashable GetModIface
459
434
instance NFData GetModIface
460
- instance Binary GetModIface
461
435
462
436
data GetModIfaceWithoutLinkable = GetModIfaceWithoutLinkable
463
437
deriving (Eq , Show , Typeable , Generic )
464
438
instance Hashable GetModIfaceWithoutLinkable
465
439
instance NFData GetModIfaceWithoutLinkable
466
- instance Binary GetModIfaceWithoutLinkable
467
440
468
441
data IsFileOfInterest = IsFileOfInterest
469
442
deriving (Eq , Show , Typeable , Generic )
470
443
instance Hashable IsFileOfInterest
471
444
instance NFData IsFileOfInterest
472
- instance Binary IsFileOfInterest
473
445
474
446
data GetModSummaryWithoutTimestamps = GetModSummaryWithoutTimestamps
475
447
deriving (Eq , Show , Typeable , Generic )
476
448
instance Hashable GetModSummaryWithoutTimestamps
477
449
instance NFData GetModSummaryWithoutTimestamps
478
- instance Binary GetModSummaryWithoutTimestamps
479
450
480
451
data GetModSummary = GetModSummary
481
452
deriving (Eq , Show , Typeable , Generic )
482
453
instance Hashable GetModSummary
483
454
instance NFData GetModSummary
484
- instance Binary GetModSummary
485
455
486
456
-- | Get the vscode client settings stored in the ide state
487
457
data GetClientSettings = GetClientSettings
488
458
deriving (Eq , Show , Typeable , Generic )
489
459
instance Hashable GetClientSettings
490
460
instance NFData GetClientSettings
491
- instance Binary GetClientSettings
492
461
493
462
type instance RuleResult GetClientSettings = Hashed (Maybe Value )
494
463
495
464
data AddWatchedFile = AddWatchedFile deriving (Eq , Show , Typeable , Generic )
496
465
instance Hashable AddWatchedFile
497
466
instance NFData AddWatchedFile
498
- instance Binary AddWatchedFile
499
467
500
468
501
469
-- A local rule type to get caching. We want to use newCache, but it has
@@ -516,7 +484,6 @@ instance NFData IdeGhcSession where rnf !_ = ()
516
484
data GhcSessionIO = GhcSessionIO deriving (Eq , Show , Typeable , Generic )
517
485
instance Hashable GhcSessionIO
518
486
instance NFData GhcSessionIO
519
- instance Binary GhcSessionIO
520
487
521
488
makeLensesWith
522
489
(lensRules & lensField .~ mappingNamer (pure . (++ " L" )))
0 commit comments