@@ -84,7 +84,7 @@ type instance RuleResult GetKnownTargets = KnownTargets
84
84
type instance RuleResult GenerateCore = ModGuts
85
85
86
86
data GenerateCore = GenerateCore
87
- deriving (Eq , Show , Typeable , Generic )
87
+ deriving (Eq , Show , Generic )
88
88
instance Hashable GenerateCore
89
89
instance NFData GenerateCore
90
90
@@ -104,12 +104,12 @@ instance NFData LinkableResult where
104
104
rnf = rwhnf
105
105
106
106
data GetLinkable = GetLinkable
107
- deriving (Eq , Show , Typeable , Generic )
107
+ deriving (Eq , Show , Generic )
108
108
instance Hashable GetLinkable
109
109
instance NFData GetLinkable
110
110
111
111
data GetImportMap = GetImportMap
112
- deriving (Eq , Show , Typeable , Generic )
112
+ deriving (Eq , Show , Generic )
113
113
instance Hashable GetImportMap
114
114
instance NFData GetImportMap
115
115
@@ -335,13 +335,13 @@ instance Hashable GetFileContents
335
335
instance NFData GetFileContents
336
336
337
337
data GetFileExists = GetFileExists
338
- deriving (Eq , Show , Typeable , Generic )
338
+ deriving (Eq , Show , Generic )
339
339
340
340
instance NFData GetFileExists
341
341
instance Hashable GetFileExists
342
342
343
343
data GetFileHash = GetFileHash
344
- deriving (Eq , Show , Typeable , Generic )
344
+ deriving (Eq , Show , Generic )
345
345
346
346
instance NFData GetFileHash
347
347
instance Hashable GetFileHash
@@ -350,15 +350,15 @@ data FileOfInterestStatus
350
350
= OnDisk
351
351
| Modified { firstOpen :: ! Bool -- ^ was this file just opened
352
352
}
353
- deriving (Eq , Show , Typeable , Generic )
353
+ deriving (Eq , Show , Generic )
354
354
instance Hashable FileOfInterestStatus
355
355
instance NFData FileOfInterestStatus
356
356
357
357
instance Pretty FileOfInterestStatus where
358
358
pretty = viaShow
359
359
360
360
data IsFileOfInterestResult = NotFOI | IsFOI FileOfInterestStatus
361
- deriving (Eq , Show , Typeable , Generic )
361
+ deriving (Eq , Show , Generic )
362
362
instance Hashable IsFileOfInterestResult
363
363
instance NFData IsFileOfInterestResult
364
364
@@ -390,60 +390,60 @@ type instance RuleResult GetModSummary = ModSummaryResult
390
390
type instance RuleResult GetModSummaryWithoutTimestamps = ModSummaryResult
391
391
392
392
data GetParsedModule = GetParsedModule
393
- deriving (Eq , Show , Typeable , Generic )
393
+ deriving (Eq , Show , Generic )
394
394
instance Hashable GetParsedModule
395
395
instance NFData GetParsedModule
396
396
397
397
data GetParsedModuleWithComments = GetParsedModuleWithComments
398
- deriving (Eq , Show , Typeable , Generic )
398
+ deriving (Eq , Show , Generic )
399
399
instance Hashable GetParsedModuleWithComments
400
400
instance NFData GetParsedModuleWithComments
401
401
402
402
data GetLocatedImports = GetLocatedImports
403
- deriving (Eq , Show , Typeable , Generic )
403
+ deriving (Eq , Show , Generic )
404
404
instance Hashable GetLocatedImports
405
405
instance NFData GetLocatedImports
406
406
407
407
-- | Does this module need to be compiled?
408
408
type instance RuleResult NeedsCompilation = Maybe LinkableType
409
409
410
410
data NeedsCompilation = NeedsCompilation
411
- deriving (Eq , Show , Typeable , Generic )
411
+ deriving (Eq , Show , Generic )
412
412
instance Hashable NeedsCompilation
413
413
instance NFData NeedsCompilation
414
414
415
415
data GetModuleGraph = GetModuleGraph
416
- deriving (Eq , Show , Typeable , Generic )
416
+ deriving (Eq , Show , Generic )
417
417
instance Hashable GetModuleGraph
418
418
instance NFData GetModuleGraph
419
419
420
420
data ReportImportCycles = ReportImportCycles
421
- deriving (Eq , Show , Typeable , Generic )
421
+ deriving (Eq , Show , Generic )
422
422
instance Hashable ReportImportCycles
423
423
instance NFData ReportImportCycles
424
424
425
425
data TypeCheck = TypeCheck
426
- deriving (Eq , Show , Typeable , Generic )
426
+ deriving (Eq , Show , Generic )
427
427
instance Hashable TypeCheck
428
428
instance NFData TypeCheck
429
429
430
430
data GetDocMap = GetDocMap
431
- deriving (Eq , Show , Typeable , Generic )
431
+ deriving (Eq , Show , Generic )
432
432
instance Hashable GetDocMap
433
433
instance NFData GetDocMap
434
434
435
435
data GetHieAst = GetHieAst
436
- deriving (Eq , Show , Typeable , Generic )
436
+ deriving (Eq , Show , Generic )
437
437
instance Hashable GetHieAst
438
438
instance NFData GetHieAst
439
439
440
440
data GetBindings = GetBindings
441
- deriving (Eq , Show , Typeable , Generic )
441
+ deriving (Eq , Show , Generic )
442
442
instance Hashable GetBindings
443
443
instance NFData GetBindings
444
444
445
445
data GhcSession = GhcSession
446
- deriving (Eq , Show , Typeable , Generic )
446
+ deriving (Eq , Show , Generic )
447
447
instance Hashable GhcSession
448
448
instance NFData GhcSession
449
449
@@ -452,7 +452,7 @@ newtype GhcSessionDeps = GhcSessionDeps_
452
452
-- Required for interactive evaluation, but leads to more cache invalidations
453
453
fullModSummary :: Bool
454
454
}
455
- deriving newtype (Eq , Typeable , Hashable , NFData )
455
+ deriving newtype (Eq , Hashable , NFData )
456
456
457
457
instance Show GhcSessionDeps where
458
458
show (GhcSessionDeps_ False ) = " GhcSessionDeps"
@@ -462,45 +462,45 @@ pattern GhcSessionDeps :: GhcSessionDeps
462
462
pattern GhcSessionDeps = GhcSessionDeps_ False
463
463
464
464
data GetModIfaceFromDisk = GetModIfaceFromDisk
465
- deriving (Eq , Show , Typeable , Generic )
465
+ deriving (Eq , Show , Generic )
466
466
instance Hashable GetModIfaceFromDisk
467
467
instance NFData GetModIfaceFromDisk
468
468
469
469
data GetModIfaceFromDiskAndIndex = GetModIfaceFromDiskAndIndex
470
- deriving (Eq , Show , Typeable , Generic )
470
+ deriving (Eq , Show , Generic )
471
471
instance Hashable GetModIfaceFromDiskAndIndex
472
472
instance NFData GetModIfaceFromDiskAndIndex
473
473
474
474
data GetModIface = GetModIface
475
- deriving (Eq , Show , Typeable , Generic )
475
+ deriving (Eq , Show , Generic )
476
476
instance Hashable GetModIface
477
477
instance NFData GetModIface
478
478
479
479
data IsFileOfInterest = IsFileOfInterest
480
- deriving (Eq , Show , Typeable , Generic )
480
+ deriving (Eq , Show , Generic )
481
481
instance Hashable IsFileOfInterest
482
482
instance NFData IsFileOfInterest
483
483
484
484
data GetModSummaryWithoutTimestamps = GetModSummaryWithoutTimestamps
485
- deriving (Eq , Show , Typeable , Generic )
485
+ deriving (Eq , Show , Generic )
486
486
instance Hashable GetModSummaryWithoutTimestamps
487
487
instance NFData GetModSummaryWithoutTimestamps
488
488
489
489
data GetModSummary = GetModSummary
490
- deriving (Eq , Show , Typeable , Generic )
490
+ deriving (Eq , Show , Generic )
491
491
instance Hashable GetModSummary
492
492
instance NFData GetModSummary
493
493
494
494
-- See Note [Client configuration in Rules]
495
495
-- | Get the client config stored in the ide state
496
496
data GetClientSettings = GetClientSettings
497
- deriving (Eq , Show , Typeable , Generic )
497
+ deriving (Eq , Show , Generic )
498
498
instance Hashable GetClientSettings
499
499
instance NFData GetClientSettings
500
500
501
501
type instance RuleResult GetClientSettings = Hashed (Maybe Value )
502
502
503
- data AddWatchedFile = AddWatchedFile deriving (Eq , Show , Typeable , Generic )
503
+ data AddWatchedFile = AddWatchedFile deriving (Eq , Show , Generic )
504
504
instance Hashable AddWatchedFile
505
505
instance NFData AddWatchedFile
506
506
@@ -520,7 +520,7 @@ data IdeGhcSession = IdeGhcSession
520
520
instance Show IdeGhcSession where show _ = " IdeGhcSession"
521
521
instance NFData IdeGhcSession where rnf ! _ = ()
522
522
523
- data GhcSessionIO = GhcSessionIO deriving (Eq , Show , Typeable , Generic )
523
+ data GhcSessionIO = GhcSessionIO deriving (Eq , Show , Generic )
524
524
instance Hashable GhcSessionIO
525
525
instance NFData GhcSessionIO
526
526
0 commit comments