File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,22 @@ data ProgressEvent
53
53
data ProgressStateTrackingType = ProgressStateInsideTracking | ProgressStateOutsideTracking
54
54
55
55
data ProgressReporting (a :: ProgressStateTrackingType ) m where
56
+ -- ^ see Note [ProgressReporting API and InProgressState]
56
57
ProgressReportingInSide ::
57
58
{ progressUpdateI :: ProgressEvent -> m () ,
58
59
inProgress :: forall a . NormalizedFilePath -> m a -> m a ,
59
- -- ^ see Note [ProgressReporting API and InProgressState]
60
60
progressStopI :: IO ()
61
61
-- ^ we are using IO here because creating and stopping the `ProgressReporting`
62
62
-- is different from how we use it.
63
63
} -> ProgressReporting 'ProgressStateInsideTracking m
64
64
ProgressReportingOutSide ::
65
65
-- since we are tracking progress externally, we don't need the `inProgress` function
66
66
{ progressUpdateO :: ProgressEvent -> m () ,
67
- -- ^ see Note [ProgressReporting API and InProgressState]
68
67
progressStopO :: IO ()
69
68
-- ^ we are using IO here because creating and stopping the `ProgressReporting`
70
69
-- is different from how we use it.
71
70
} -> ProgressReporting 'ProgressStateOutsideTracking m
72
71
73
- -- Note [ProgressReporting API and InProgressState]
74
-
75
72
76
73
-- |
77
74
-- DuplicatedRecordFields won't work here because of the GADT gives us different result types
You can’t perform that action at this time.
0 commit comments